CN102937923A - Method for automatically storing state of user interface - Google Patents
Method for automatically storing state of user interface Download PDFInfo
- Publication number
- CN102937923A CN102937923A CN2012104085936A CN201210408593A CN102937923A CN 102937923 A CN102937923 A CN 102937923A CN 2012104085936 A CN2012104085936 A CN 2012104085936A CN 201210408593 A CN201210408593 A CN 201210408593A CN 102937923 A CN102937923 A CN 102937923A
- Authority
- CN
- China
- Prior art keywords
- strategy
- viewstate
- interface
- view
- configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention discloses a method for automatically storing a state of a user interface and relates to a presentation layer of software layered architecture. The method comprises the following steps of: A, defining an interface standard: defining the interface standard obeyed by a specific interface to store the state of the user interface; and B, controlling during running: during running of a system, storing and loading a view state of the specific user interface according to the interface standard defined in the step A. Compared with the prior art, the method for automatically storing the state of the user interface has the advantages that a group of interface standards are defined for the user interface and define attribute and operation which are used for storing and reloading the state of the user interface, so that a user state of any interface which is in accordance with the interface standards can be temporarily stored and reloaded on the basis of the interface standards. By the method, the user experience is improved, and complexity and inconvenience which are caused by data loss can be actually avoided or reduced.
Description
Technical field
The present invention relates to the presentation layer of software hierarchy framework, specifically a kind of method of automatic preservation user interface state.
Background technology
In software systems, the user is undertaken by user interface and system alternately.As the user during at an interface entry information, because system is overtime or other uncontrollable factors (system crash, Network Abnormal etc.), cause the loss of data of user's typing, force user's typing again of having to, this is that a kind of bad user experiences, if the data volume of user's typing is larger, this is also a kind of operation of very poor efficiency simultaneously.
If a kind of temporary storage method of user's logging data can be provided in system, while when above-mentioned scene generation, causing loss of data, system can help the user to give the data of typing for change automatically, this will be a kind of extraordinary system performance, experience simultaneously improving the user, also can actually avoid or reduce due to loss of data bring loaded down with trivial details, inconvenient.
Summary of the invention
Technical assignment of the present invention is for above-mentioned the deficiencies in the prior art, and a kind of method of automatic preservation user interface state is provided.The method is by being user interface definition one group interface standard, this group interface standard definition preserve and reload the needed attribute of user interface state and operation in the interface, thereby the User Status of arbitrary interface that can realize meeting interface standard based on this group interface standard is temporary and reload, avoid user's obliterated data.
Technical assignment of the present invention is realized in the following manner: a kind of method of automatic preservation user interface state comprises following steps:
A. defining interface standard: define the interface standard of following at concrete interface and preserve to realize user interface state;
While B. moving, control: when the system run duration, by the interface standard defined in operation steps A, realize that the viewstate of exemplary user interface is preserved and loaded.
Interface standard described in steps A comprises Status view interface, viewstate context, viewstate conversation strategy interface, viewstate loading policy interface, viewstate deletion strategy interface, the configuration of viewstate conversation strategy, viewstate loads the strategy configuration and the viewstate deletion strategy configures
Described " view " is the translator of Chinese of English " View ", is used for the abstract user interface that represents.
Described Status view interface is for defining the interface standard that need to realize that user interface that interfacial state is preserved need to realize.
" Status view interface " comprises seven attributes: view identification, view expansion sign, whether need to preserve interfacial state, whether can load viewstate, conversation strategy sign, load the strategy sign, the deletion strategy sign.
The event that " Status view interface " comprises one " viewstate variation ", when interfacial state changes, can trigger this event, for the notice of the change of viewstate.
" Status view interface " comprises two operations, is respectively " reading interfacial state ", " loading interfacial state ".Described viewstate context for recording the information that viewstate is relevant, comprises five attributes: view identification, extended view sign, data source, extension storage, finally change the time.
Described viewstate conversation strategy interface is used for when needs are preserved viewstate, the preservation of execution view state, the operation that comprises " preservation viewstate ".
Described viewstate loads policy interface for when needs load viewstate, searching, mating, the operation that comprises " searching the viewstate context " " viewstate context ".
Described viewstate deletion strategy interface is for deleting viewstate storage, the operation that comprises " deletion viewstate ".
Described viewstate conversation strategy is configured for " the view conversation strategy interface " set provided in current system is provided, and comprises two operations: " obtaining the viewstate conversation strategy configuration of acquiescence ", " obtaining the configuration of viewstate conversation strategy ".
Described viewstate loads tactful being configured for " the viewstate loading policy interface " set provided in current system is provided, and comprises two operations: " viewstate that obtains acquiescence loads the strategy configuration ", " obtaining the configuration of viewstate loading strategy ".
Described viewstate deletion strategy is configured for " the viewstate deletion strategy interface " set provided in current system is provided, and comprises two operations: " obtaining the viewstate deletion strategy configuration of acquiescence ", " obtaining the configuration of viewstate deletion strategy ".
Step B comprises following subfield scape:
(1) preserve interfacial state
A) interfacial state is regularly preserved on backstage;
B) when changing, preserves interfacial state interfacial state;
(2) load interfacial state
(3) delete interfacial state.
In " preservation interfacial state " scene, while carrying out the preservation of interface view state, at first " the Status view interface " realized according to current interface, obtain " whether needing to preserve interfacial state " to judge whether to carry out the view preservation, if do not need terminating operation; Then " the conversation strategy sign " of system acquisition " Status view interface ", if " conversation strategy sign " is not empty, calls " configuration of view conversation strategy " and obtain the conversation strategy of appointment; If " conversation strategy sign " is empty, call the conversation strategy that " configuration of view conversation strategy " obtains acquiescence;
After the strategy configuration that gets appointment, in program, according to strategy, configuration is described, the conversation strategy program of " viewstate conversation strategy " that loaded corresponding realization, in the conversation strategy program, " reading interfacial state " method of calling interface view gets " the viewstate context " of current interface view, and user interface state is preserved; Wherein, the viewstate conversation strategy, can be expanded by configuration mode, thereby multiple conversation strategy is provided.
Described " interfacial state is regularly preserved on backstage ", while enabling, system adopts the mechanism of automatic regular polling, at interval of a period of time, can automatically produce one and preserve calling of interfacial state, in order to automatic preservation interfacial state;
When described " preserving interfacial state when interfacial state changes " mechanism is enabled, " viewstate variation " event of system meeting register interface view, when Event triggered, system is carried out the preservation of interface view state.
In " loading interfacial state " scene, when system is opened a user interface, the system creation user interface, " the Status view interface " realized according to user interface, according to " whether can load viewstate " of " Status view interface ", judge whether to carry out the view loading: if need, load, obtain " the loading the strategy sign " of " Status view interface ", if " loading the strategy sign " of getting, not for empty, called " view loads the strategy configuration " and obtained the loading strategy of appointment; If it is empty " loading the strategy sign ", call the conversation strategy that " view loads the strategy configuration " obtains acquiescence;
After the strategy configuration that gets appointment, in program, according to strategy, configuration is described, the loading strategy program of " viewstate load strategy " that loaded corresponding realization, in loading strategy program, according to the attribute of current " Status view interface ", according to specific strategy, the viewstate of current Status view is searched, mated; If be not loaded into corresponding " viewstate context ", interrupt the interfacial state loading procedure; If found specific " viewstate context ", " loading interfacial state " method of " Status view interface " of calling is carried out load operation.
In " deletion interfacial state " scene, when the automatic User Status of preserving of system had lost efficacy, the viewstate that needs deletion system to preserve: " the Status view interface " that system realizes according to the active user interface, " the deletion strategy sign " of " Status view interface ", if " deletion strategy sign " is not empty, calls " configuration of view deletion strategy " and obtain the deletion strategy of appointment; If " deletion strategy sign " is empty, call the deletion strategy that " configuration of view deletion strategy " obtains acquiescence;
After the deletion strategy configuration that gets appointment, in program, according to strategy, configuration is described, the deletion strategy program of " viewstate deletion strategy " that loaded corresponding realization, and in the deletion strategy program, to viewstate, storage is deleted; Wherein, the viewstate deletion strategy, can be expanded by configuration mode, thereby multiple deletion strategy is provided.
Compared with prior art, the method for the automatic preservation user interface state that the application of the invention provides, software systems can realize automatic preservation, the loading of user interface state, the functional characteristic such as delete after inefficacy.Experience simultaneously improving the user, also can actually avoid or reduce due to loss of data bring loaded down with trivial details, inconvenient.
The accompanying drawing explanation
Accompanying drawing 1 is the interface standard definition structure schematic diagram that interfacial state of the present invention is preserved automatically.
Embodiment
With reference to Figure of description, with specific embodiment, the method to automatic preservation user interface state of the present invention is described in detail below.
Embodiment mono-:
The method of automatic preservation user interface state of the present invention comprises following steps:
A. defining interface standard: define the interface standard of following at concrete interface and preserve to realize user interface state;
While B. moving, control: when the system run duration, by the interface standard defined in operation steps A, realize that the viewstate of exemplary user interface is preserved and loaded.
As shown in Figure 1: interface standard described in steps A comprises Status view interface, viewstate context, viewstate conversation strategy interface, viewstate loading policy interface, viewstate deletion strategy interface, the configuration of viewstate conversation strategy, viewstate loads the strategy configuration and the viewstate deletion strategy configures
Described " view " is the translator of Chinese of English " View ", is used for the abstract user interface that represents.
Described Status view interface is for defining the interface standard that need to realize that user interface that interfacial state is preserved need to realize.
" Status view interface " comprises seven attributes: view identification, view expansion sign, whether need to preserve interfacial state, whether can load viewstate, conversation strategy sign, load the strategy sign, the deletion strategy sign, specifically describe as follows:
Property Name | Implication |
View identification | For view of unique identification, for when preserving and load viewstate to the identification of view. |
View expansion sign | For view of accessory ID, when there being some special circumstances, need to be by this attribute auxiliary view of distinguishing when preserving and load viewstate. |
Whether need to preserve interfacial state | Whether to carry out the interfacial state preservation for the current user interface of mark.This attribute is used to carry out a precondition of interface view state preservation. |
Whether can load viewstate | Whether can be loaded viewstate for the current user interface of mark, this attribute is used to carry out a front precondition of interface view state load. |
The conversation strategy sign | Be used to specify the sign of viewstate conversation strategy.The viewstate preserving type can have multiple realization, on interface view, can provide the setting to conversation strategy, when carrying out the preservation of interface view state, if this strategy sign is not empty, can preserve user interface state according to the strategy of appointment. |
Load the strategy sign | Be used to specify viewstate and load tactful sign.The viewstate load mode can have multiple realization, on interface view, can provide loading tactful setting, when carrying out the interface view state load, if this strategy sign is not empty, can load user interface state according to the strategy of appointment. |
The deletion strategy sign | Be used to specify the sign of viewstate deletion strategy.Viewstate is deleted mode can multiple realization, on interface view, can provide the setting to deletion strategy, when carrying out the deletion of interface view state, if this strategy sign is not empty, can delete user interface state according to the strategy of appointment. |
The event that " Status view interface " comprises one " viewstate variation ", when interfacial state changes, can trigger this event, for the notice of the change of viewstate.
" Status view interface " comprises two operations, is respectively " reading interfacial state ", " loading interfacial state ".Specifically describe as follows:
Action name | Implication |
Read interfacial state | When system will be preserved user interface state, by this operation, read the interface view state.It comprises " viewstate context " type rreturn value. |
Load interfacial state | When system will load the User Status of having preserved, by this operation setting user interface state.The input parameter that it comprises " viewstate context " type. |
Described viewstate context for recording the information that viewstate is relevant, comprises five attributes: view identification, extended view sign, data source, extension storage, finally change the time.Specifically describe as follows:
Property Name | Implication |
View identification | For view of unique identification, for when preserving and load viewstate to the identification of view. |
View expansion sign | For view of accessory ID, when there being some special circumstances, need to be by this attribute auxiliary view of distinguishing when preserving and load viewstate. |
Data source | For recording the data of holding on interface view, it is generally the set of an entity type or entity type. |
Extension storage | Itself is the list object of a key-value pair, for recording some Expansion Interface states at interface, by concrete user interface program, is processed. |
Finally change the time | For the final updating time of record " viewstate context ". |
Described viewstate conversation strategy interface is used for when needs are preserved viewstate, the preservation of execution view state, the operation that comprises " preservation viewstate ".Specifically describe as follows:
Action name | Implication |
Preserve viewstate | According to the view information of input, viewstate is preserved.It comprises " Status view interface " parameter.Without rreturn value. |
Described viewstate loads policy interface for when needs load viewstate, searching, mating, the operation that comprises " searching the viewstate context " " viewstate context ".Specifically describe as follows:
Action name | Implication |
Load viewstate | According to the view information of input, context is searched, mated, and loaded according to match condition.It comprises " Status view interface " parameter, without rreturn value. |
Described viewstate deletion strategy interface is for deleting viewstate storage, the operation that comprises " deletion viewstate ".Specifically describe as follows:
Action name | Implication |
Delete viewstate | According to the view information of input, delete corresponding viewstate storage. |
Described viewstate conversation strategy is configured for " the view conversation strategy interface " set provided in current system is provided, and comprises two operations: " obtaining the viewstate conversation strategy configuration of acquiescence ", " obtaining the configuration of viewstate conversation strategy ".Specifically describe as follows:
Action name | Implication |
Obtain the viewstate conversation strategy configuration of acquiescence | Obtain the configuration of the viewstate conversation strategy of acquiescence.Wherein, the configuration of viewstate conversation strategy, be a character string, for describing viewstate conversation strategy program, loads required specifying information. |
Obtain the configuration of viewstate conversation strategy | According to the viewstate conversation strategy sign of input, the configuration of obtaining the viewstate conversation strategy.It comprises " viewstate conversation strategy sign " parameter, returns to the configuration of a viewstate conversation strategy.If do not find, return to a null character string. |
Described viewstate loads tactful being configured for " the viewstate loading policy interface " set provided in current system is provided, and comprises two operations: " viewstate that obtains acquiescence loads the strategy configuration ", " obtaining the configuration of viewstate loading strategy ".Specifically describe as follows:
Action name | Implication |
The viewstate that obtains acquiescence loads the strategy configuration | The viewstate that obtains acquiescence loads tactful configuration.Wherein, viewstate loads tactful configuration, is a character string, for describing viewstate loading strategy program, loads required specifying information. |
Obtain viewstate and load the strategy configuration | Load the strategy sign according to the viewstate of input, obtain viewstate and load tactful configuration.It comprises " viewstate loads a strategy sign " parameter, returns to a viewstate and loads tactful configuration.If do not find, return to a null character string. |
Described viewstate deletion strategy is configured for " the viewstate deletion strategy interface " set provided in current system is provided, and comprises two operations: " obtaining the viewstate deletion strategy configuration of acquiescence ", " obtaining the configuration of viewstate deletion strategy ".Specifically describe as follows:
Action name | Implication |
Obtain the viewstate deletion strategy configuration of acquiescence | Obtain the configuration of the viewstate deletion strategy of acquiescence.Wherein, the configuration of viewstate deletion strategy, be a character string, for describing viewstate deletion strategy program, loads required specifying information. |
Obtain the configuration of viewstate deletion strategy | According to the viewstate deletion strategy sign of input, the configuration of obtaining the viewstate deletion strategy.It comprises " viewstate deletion strategy sign " parameter, returns to the configuration of a viewstate deletion strategy.If do not find, return to a null character string. |
Step B comprises following subfield scape:
(4) preserve interfacial state
A) interfacial state is regularly preserved on backstage;
B) when changing, preserves interfacial state interfacial state;
(5) load interfacial state
(6) delete interfacial state.
"
Preserve interfacial state" scene, carrying out the interface view state while preserving, " the Status view interface " at first realized according to current interface, obtain " whether needing to preserve interfacial state " to judge whether to carry out the view preservation, if do not need terminating operation; Then " the conversation strategy sign " of system acquisition " Status view interface ", if " conversation strategy sign " is not empty, calls " configuration of view conversation strategy " and obtain the conversation strategy of appointment; If " conversation strategy sign " is empty, call the conversation strategy that " configuration of view conversation strategy " obtains acquiescence;
After the strategy configuration that gets appointment, in program, according to strategy, the (description that program loads is described in configuration, mode difference due to the distinct program loading, various load modes are known technology), the conversation strategy program of " viewstate conversation strategy " that loaded corresponding realization, in the conversation strategy program, " reading interfacial state " method of calling interface view gets " the viewstate context " of current interface view, and user interface state is preserved; Wherein, the viewstate conversation strategy, can be expanded by configuration mode, thereby multiple conversation strategy is provided.
Described " interfacial state is regularly preserved on backstage ", while enabling, system adopts the mechanism of automatic regular polling, at interval of a period of time, can automatically produce one and preserve calling of interfacial state, in order to automatic preservation interfacial state;
When described " preserving interfacial state when interfacial state changes " mechanism is enabled, " viewstate variation " event of system meeting register interface view, when Event triggered, system is carried out the preservation of interface view state.
"
Load interfacial state" scene; when system is opened a user interface; the system creation user interface; " the Status view interface " realized according to user interface; judge whether to carry out the view loading according to " whether can load viewstate " of " Status view interface ": load if need; obtain " the loading the strategy sign " of " Status view interface ", if " loading the strategy sign " of getting, not for empty, called " view loads the strategy configuration " and obtained the loading strategy of appointment; If it is empty " loading the strategy sign ", call the conversation strategy that " view loads the strategy configuration " obtains acquiescence;
After the strategy configuration that gets appointment, in program, according to strategy, the (description that program loads is described in configuration, mode difference due to the distinct program loading, various load modes are known technology), the loading strategy program of " viewstate load strategy " that loaded corresponding realization, in loading strategy program, according to the attribute of current " Status view interface ", according to specific strategy, the viewstate of current Status view is searched, mated; If be not loaded into corresponding " viewstate context ", interrupt the interfacial state loading procedure; If found specific " viewstate context ", " loading interfacial state " method of " Status view interface " of calling is carried out load operation.
In " deletion interfacial state " scene, when the automatic User Status of preserving of system had lost efficacy, the viewstate that needs deletion system to preserve: " the Status view interface " that system realizes according to the active user interface, " the deletion strategy sign " of " Status view interface ", if " deletion strategy sign " is not empty, calls " configuration of view deletion strategy " and obtain the deletion strategy of appointment; If " deletion strategy sign " is empty, call the deletion strategy that " configuration of view deletion strategy " obtains acquiescence;
After the deletion strategy configuration that gets appointment, in program, according to strategy, the (description that program loads is described in configuration, mode difference due to the distinct program loading, various load modes are known technology), the deletion strategy program of " viewstate deletion strategy " that loaded corresponding realization, in the deletion strategy program, to viewstate, storage is deleted; Wherein, the viewstate deletion strategy, can be expanded by configuration mode, thereby multiple deletion strategy is provided.
Embodiment bis-:
Actual implement scene for example by one, make above-mentioned target of the present invention, feature and advantage more clear, understandable.
Implementing scene partitioning is two stages, is respectively: development phase, operation phase.The simple customer information input interface of take is example.
Development phase, system is prefabricated for three kinds of strategies of User Status operation: LocalViewStateSaveStrategy(interface view conversation strategy), the LocalViewStateLoadStrategy(interface view loads strategy), LocalViewSteateRemoveStategy(interface view deletion strategy).Three kinds of strategies provide the interfacial state preservation that is kept at local storage mode, the strategy that loads, deletes.
Take the customer information input interface as example, and the customer information input interface has six fields such as customer number, customer name, telephone number, Email, contact address, postcode.Examples of interfaces as shown in Figure 2.
The customer information input interface needs to realize " Status view interface ", and corresponding setup of attribute is as follows:
The customer information input interface will be realized " reading interfacial state ", " loading interfacial state " (not describing in detail) simultaneously.
Operation phase, system, by " system is regularly preserved interfacial state on backstage " mechanism, is regularly preserved the data of not preserving in the customer information input interface on backstage, supposes every 1 minute and automatically preserves 1 time.
The user has opened the customer information input interface, has inputted numbering: 001, and customer name: Zhang San, telephone number: 18600010001.At this moment, due to other work being arranged temporarily, the user has left.System, in the time of 1 minute, has triggered automatic preservation action automatically on backstage: read the customer information input interface, read " whether needing to preserve interfacial state " for "Yes", start to carry out automatic preservation.At first read conversation strategy and be designated " LocalViewStateSaveStrategy ", call the configuration information that " configuration of view conversation strategy " gets corresponding conversation strategy, carry out the program loading, using current interface as " Status view interface " type transfer to " preservation viewstate " method of conversation strategy, call " reading interfacial state " method in " Status view interface " in conversation strategy, get " the viewstate context " of current interface, state is saved in to local storage.
The user returns after half an hour, and the discovery system is overtime, after the user logins again, reopened the customer information login interface, system reads the customer information input interface, reads " whether can load viewstate " for "Yes", starts the action of execution view state load.At first read the loading strategy and be designated " LocalViewStateLoadStrategy ", call " view loads the strategy configuration " and get the tactful configuration information of corresponding loading, carry out the program loading, give " loading viewstate " method that loads strategy using current interface as " Status view interface " type transfer, load in strategy and find corresponding " viewstate context " according to " view identification " in " Status view interface " in the storage of this locality, then call " loading interfacial state " method in " Status view interface ", import " the viewstate context " that get into, interfacial state is loaded.The user finds like this, and " numbering: 001, customer name: Zhang San, telephone number: 18600010001 " information of typing before has been retained.
The user continues the complete customer information of typing, clicks save button, and after customer information has been preserved, the viewstate of preservation is just invalid.Therefore after customer information is preserved, system starts to delete the viewstate of preserving: system reads the customer information input interface, reading " deletion strategy sign " is " LocalViewStateRemoveStrategy ", call the configuration information that " configuration of view deletion strategy " gets corresponding deletion strategy, carry out the program loading, using current interface as " Status view interface " type transfer to " deletion viewstate " method of deletion strategy, find corresponding " viewstate context " according to " view identification " in " Status view interface " in the storage of this locality in deletion strategy, then " the viewstate context " accordingly from the storage of this locality being deleted.
Claims (7)
1. a method of automatically preserving user interface state is characterized in that comprising following steps:
1) defining interface standard: define the interface standard of following at concrete interface and preserve to realize user interface state;
While 2) moving, control: when the system run duration, by the interface standard of definition in operation steps 1, realize that the viewstate of exemplary user interface is preserved and loaded.
2. the method for automatic preservation user interface state according to claim 1, it is characterized in that: interface standard described in step 1 comprises Status view interface, viewstate context, viewstate conversation strategy interface, viewstate loading policy interface, viewstate deletion strategy interface, the configuration of viewstate conversation strategy, viewstate loads the strategy configuration and the viewstate deletion strategy configures
Described Status view interface is for defining the interface standard that need to realize that user interface that interfacial state is preserved need to realize, comprise seven attributes: view identification, view expansion sign, whether need to preserve interfacial state, whether can load viewstate, conversation strategy sign, load the strategy sign, the deletion strategy sign; The event that comprises one " viewstate variation ": when interfacial state changes, can trigger this event, for the notice of the change of viewstate; Comprise two operations, be respectively " reading interfacial state ", " loading interfacial state ";
Described viewstate context for recording the information that viewstate is relevant, comprises five attributes: view identification, extended view sign, data source, extension storage, finally change the time;
Described viewstate conversation strategy interface is used for when needs are preserved viewstate, the preservation of execution view state, the operation that comprises " preservation viewstate ";
Described viewstate loads policy interface for when needs load viewstate, searching, mating, the operation that comprises " searching the viewstate context " " viewstate context ";
Described viewstate deletion strategy interface is for deleting viewstate storage, the operation that comprises " deletion viewstate ";
Described viewstate conversation strategy is configured for " the view conversation strategy interface " set provided in current system is provided, and comprises two operations: " obtaining the viewstate conversation strategy configuration of acquiescence ", " obtaining the configuration of viewstate conversation strategy ";
Described viewstate loads tactful being configured for " the viewstate loading policy interface " set provided in current system is provided, and comprises two operations: " viewstate that obtains acquiescence loads the strategy configuration ", " obtaining the configuration of viewstate loading strategy ";
Described viewstate deletion strategy is configured for " the viewstate deletion strategy interface " set provided in current system is provided, and comprises two operations: " obtaining the viewstate deletion strategy configuration of acquiescence ", " obtaining the configuration of viewstate deletion strategy ".
3. the method for automatic preservation user interface state according to claim 1 is characterized in that step 2 comprises following subfield scape:
1) preserve interfacial state
Interfacial state is regularly preserved on backstage;
When changing, preserves interfacial state interfacial state;
2) load interfacial state
3) delete interfacial state.
4. the method for automatic preservation user interface state according to claim 3, it is characterized in that: in " preservation interfacial state " scene, while carrying out the preservation of interface view state, at first " the Status view interface " realized according to current interface, obtaining " whether needing to preserve interfacial state " judges whether to carry out the view preservation, if do not need terminating operation; Then " the conversation strategy sign " of system acquisition " Status view interface ", if " conversation strategy sign " is not empty, calls " configuration of view conversation strategy " and obtain the conversation strategy of appointment; If " conversation strategy sign " is empty, call the conversation strategy that " configuration of view conversation strategy " obtains acquiescence;
After the strategy configuration that gets appointment, in program, according to strategy, configuration is described, the conversation strategy program of " viewstate conversation strategy " that loaded corresponding realization, in the conversation strategy program, " reading interfacial state " method of calling interface view gets " the viewstate context " of current interface view, and user interface state is preserved; Wherein, the viewstate conversation strategy, can be expanded by configuration mode, thereby multiple conversation strategy is provided.
5. the method for automatic preservation user interface state according to claim 3, it is characterized in that: described " interfacial state is regularly preserved on backstage " is while enabling, system adopts the mechanism of automatic regular polling, at interval of a period of time, can automatically produce one and preserve calling of interfacial state, in order to automatic preservation interfacial state;
When described " preserving interfacial state when interfacial state changes " mechanism is enabled, " viewstate variation " event of system meeting register interface view, when Event triggered, system is carried out the preservation of interface view state.
6. the method for automatic preservation user interface state according to claim 3, it is characterized in that: in " loading interfacial state " scene, when system is opened a user interface, the system creation user interface, " the Status view interface " realized according to user interface, according to " whether can load viewstate " of " Status view interface ", judge whether to carry out the view loading: if need, load, obtain " the loading the strategy sign " of " Status view interface ", if " loading the strategy sign " of getting be not for empty, call " view loads the strategy configuration " and obtain the loading strategy of appointment, if it is empty " loading the strategy sign ", call the conversation strategy that " view loads the strategy configuration " obtains acquiescence,
After the strategy configuration that gets appointment, in program, according to strategy, configuration is described, the loading strategy program of " viewstate load strategy " that loaded corresponding realization, in loading strategy program, according to the attribute of current " Status view interface ", according to specific strategy, the viewstate of current Status view is searched, mated; If be not loaded into corresponding " viewstate context ", interrupt the interfacial state loading procedure; If found specific " viewstate context ", " loading interfacial state " method of " Status view interface " of calling is carried out load operation.
7. the method for automatic preservation user interface state according to claim 3, it is characterized in that: in " deletion interfacial state " scene, when the automatic User Status of preserving of system had lost efficacy, the viewstate that needs deletion system to preserve: " the Status view interface " that system realizes according to the active user interface, " the deletion strategy sign " of " Status view interface ", if " deletion strategy sign " is not empty, calls " configuration of view deletion strategy " and obtain the deletion strategy of appointment; If " deletion strategy sign " is empty, call the deletion strategy that " configuration of view deletion strategy " obtains acquiescence;
After the deletion strategy configuration that gets appointment, in program, according to strategy, configuration is described, the deletion strategy program of " viewstate deletion strategy " that loaded corresponding realization, and in the deletion strategy program, to viewstate, storage is deleted; Wherein, the viewstate deletion strategy, can be expanded by configuration mode, thereby multiple deletion strategy is provided.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210408593.6A CN102937923B (en) | 2012-10-24 | 2012-10-24 | A kind of method of automatic preservation user interface state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210408593.6A CN102937923B (en) | 2012-10-24 | 2012-10-24 | A kind of method of automatic preservation user interface state |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102937923A true CN102937923A (en) | 2013-02-20 |
CN102937923B CN102937923B (en) | 2016-04-06 |
Family
ID=47696822
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210408593.6A Active CN102937923B (en) | 2012-10-24 | 2012-10-24 | A kind of method of automatic preservation user interface state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102937923B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106648796A (en) * | 2016-12-29 | 2017-05-10 | 宇龙计算机通信科技(深圳)有限公司 | Application processing method and device |
CN106815030A (en) * | 2017-02-07 | 2017-06-09 | 浪潮通用软件有限公司 | A kind of method of general treatment user interface display rule |
WO2018027743A1 (en) * | 2016-08-11 | 2018-02-15 | 王志远 | Method for saving computer schedule and save system |
WO2018027745A1 (en) * | 2016-08-11 | 2018-02-15 | 王志远 | Data collection method for computer work schedule-saving technology, and save system |
CN108874461A (en) * | 2017-11-30 | 2018-11-23 | 北京视联动力国际信息技术有限公司 | A kind of loading method and view networked terminals of view networking module |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101263456A (en) * | 2005-09-15 | 2008-09-10 | 英特尔公司 | Method and apparatus for quick resumption |
US20090300163A1 (en) * | 2008-05-27 | 2009-12-03 | Holm Eirik | Systems and methods for automatic submission of forms on a web page |
CN102377853A (en) * | 2010-08-25 | 2012-03-14 | 中兴通讯股份有限公司 | Management device and method for application, interface window and service of mobile terminal |
CN102375738A (en) * | 2010-08-25 | 2012-03-14 | 中兴通讯股份有限公司 | Device and method for managing data of mobile terminal |
-
2012
- 2012-10-24 CN CN201210408593.6A patent/CN102937923B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101263456A (en) * | 2005-09-15 | 2008-09-10 | 英特尔公司 | Method and apparatus for quick resumption |
US20090300163A1 (en) * | 2008-05-27 | 2009-12-03 | Holm Eirik | Systems and methods for automatic submission of forms on a web page |
CN102377853A (en) * | 2010-08-25 | 2012-03-14 | 中兴通讯股份有限公司 | Management device and method for application, interface window and service of mobile terminal |
CN102375738A (en) * | 2010-08-25 | 2012-03-14 | 中兴通讯股份有限公司 | Device and method for managing data of mobile terminal |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018027743A1 (en) * | 2016-08-11 | 2018-02-15 | 王志远 | Method for saving computer schedule and save system |
WO2018027745A1 (en) * | 2016-08-11 | 2018-02-15 | 王志远 | Data collection method for computer work schedule-saving technology, and save system |
CN106648796A (en) * | 2016-12-29 | 2017-05-10 | 宇龙计算机通信科技(深圳)有限公司 | Application processing method and device |
CN106815030A (en) * | 2017-02-07 | 2017-06-09 | 浪潮通用软件有限公司 | A kind of method of general treatment user interface display rule |
CN106815030B (en) * | 2017-02-07 | 2020-04-24 | 浪潮通用软件有限公司 | Universal method for processing user interface display rule |
CN108874461A (en) * | 2017-11-30 | 2018-11-23 | 北京视联动力国际信息技术有限公司 | A kind of loading method and view networked terminals of view networking module |
CN108874461B (en) * | 2017-11-30 | 2021-05-14 | 视联动力信息技术股份有限公司 | Loading method of video networking module and video networking terminal |
Also Published As
Publication number | Publication date |
---|---|
CN102937923B (en) | 2016-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9292217B2 (en) | Logical volume space sharing | |
CN110309218B (en) | Data exchange system and data writing method | |
CN102937923A (en) | Method for automatically storing state of user interface | |
WO2005096746B1 (en) | Data storage for distributed sensor networks | |
CN107870968A (en) | Real-time update is performed to file system volume | |
US20170031948A1 (en) | File synchronization method, server, and terminal | |
CN105354097B (en) | Data operation method and device based on clipboard and electronic equipment | |
CN107656705B (en) | Computer storage medium and data migration method, device and system | |
CN112965660B (en) | Method, system, equipment and medium for double storage pool information feedback | |
WO2021169496A1 (en) | Data reading method, apparatus, and device, and storage medium | |
JP7215971B2 (en) | METHOD AND APPARATUS FOR PROCESSING DATA LOCATION IN STORAGE DEVICE, COMPUTER DEVICE AND COMPUTER-READABLE STORAGE MEDIUM | |
CN108376156A (en) | Create method, apparatus, server and the storage medium of database index | |
CN103701653B (en) | The processing method of a kind of interface hot plug configuration data and network configuration server | |
CN108628885A (en) | A kind of method of data synchronization, device and storage device | |
CN102236707A (en) | Method, device and system for obtaining update data of database | |
CN106406997A (en) | A timer scheduling method and device | |
WO2017045410A1 (en) | Method and apparatus for dynamically loading data in a paging model | |
CN106254245A (en) | A kind of method and device managing list item | |
US20230040962A1 (en) | Bios-based multi-user management method and system | |
CN106776908A (en) | Data clearing method, device and terminal | |
CN111488339A (en) | NoSQ L database based on node.JS, and establishing and processing method | |
CN110704468A (en) | Data updating method and device and controller | |
WO2019062412A1 (en) | Method and apparatus for recording application information, storage medium, and electronic device | |
US9973421B2 (en) | Method and device for connection management in a telecommunication network | |
CN115578096A (en) | Block chain parallel transaction method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 250100 Ji'nan high tech Zone, Shandong, No. 1036 wave road Applicant after: Langchao General Software Co., Ltd Address before: 250100 Ji'nan high tech Zone, Shandong, No. 1036 wave road Applicant before: Shandong Universal Software Co., Ltd., Langchao Group Corp. |
|
CB03 | Change of inventor or designer information |
Inventor after: Wang Xingshan Inventor after: Sun Lixin Inventor before: Sun Lixin Inventor before: Zhu Shiyan |
|
COR | Change of bibliographic data | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |