UIP Application Block Learning Series (4) design goals of UIP Application Block

Source: Internet
Author: User

UIP Application BlockTo help you:

LAbstract all navigation and workflows from your user interfaceCode

LIt can be applied to different types of applications.ProgramUsing the same Programming Model

LDelete all status management from the user interface

LContinuously takes snapshots of the status through the process

The above items will be discussed in detail below:

Abstract all navigation and workflow code from your user interface

A workflow of an application is a business process, not a user interface process. All its control should be placed outside the presentation layer. Code abstraction can also help you easily maintain and expand existing applications.

UIP Application BlockAbstract The workflow code from the presentation layer to the Process Layer on the user interface. As the navigation in the workflow, it is not hard-coded.UIElement. If the process or your application changes, you only need to rewrite the process, notUIElement.

Use a programming model

You can createWinformApplication, and then createWebApplication. You may have developedWebApplication, but soon it will becomeWindowsApplication. If you use the same programming model for different types of applications, you can easily switch between them.

UseUIP Application BlockYou can make sure that all the navigation and workflow Code are inUI. This allows you to add a newViewAnd reuse existing applications.

Delete all status management from the user interface

In many applications, the status is stored inUILayer. This indicates that complex code is required to store, access, and operate the status. In addition, the status depends onUIDifferent types of applications have different transmission modes.

UIP Application BlockSlaveUIAbstract The State and store it in a general State object. You can useBlockClass. That is to say, any useViewAll can be usedUIPStatus, regardless of where it is stored or how it is accessed. IfViewThe status management code is not affected when the type is changed.

Continuously takes snapshots of the status through the process

In many applications, it is very difficult to store the status of a job at any time. Most applications use transactions to encapsulate jobs or subjobs, but only allow a complete transaction or success or failure. This means that if a system is suddenly closed or the user leaves the website, it is very difficult to return to the time when it leaves.

UIP Application BlockContains the status persistence mechanism, allowing code persistenceUIPStatus. This allows your applications to be maintained within the specified time.UIPStatus. Besides storing it in memory, it can also be stored in the database.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.