[go: up one dir, main page]

CN102937923B - A kind of method of automatic preservation user interface state - Google Patents

A kind of method of automatic preservation user interface state Download PDF

Info

Publication number
CN102937923B
CN102937923B CN201210408593.6A CN201210408593A CN102937923B CN 102937923 B CN102937923 B CN 102937923B CN 201210408593 A CN201210408593 A CN 201210408593A CN 102937923 B CN102937923 B CN 102937923B
Authority
CN
China
Prior art keywords
viewstate
strategy
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.)
Active
Application number
CN201210408593.6A
Other languages
Chinese (zh)
Other versions
CN102937923A (en
Inventor
王兴山
孙立新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN201210408593.6A priority Critical patent/CN102937923B/en
Publication of CN102937923A publication Critical patent/CN102937923A/en
Application granted granted Critical
Publication of CN102937923B publication Critical patent/CN102937923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of method of automatic preservation user interface state, relate to the presentation layer of software hierarchy framework.The method includes the steps of: A, defining interface standard: define the interface standard followed at concrete interface and preserve to realize user interface state; Control when B, operation: during system cloud gray model, by the interface standard defined in operation steps A, the viewstate realizing exemplary user interface is preserved and is loaded.Compared with prior art, the method of automatic preservation user interface state of the present invention is by being user interface definition one group interface standard, this group interface standard defines in interface preserves and the attribute that reloads required for user interface state and operation, thus it is temporary and reload to realize the User Status of the arbitrary interface meeting interface standard based on this group interface standard.By this method, improving Consumer's Experience simultaneously, also can actually avoid or reduce due to loss of data bring loaded down with trivial details, inconvenient.

Description

A kind of method of automatic preservation user interface state
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, user is undertaken by user interface and system alternately.When user is at an interface entry information, due to system time-out or other uncontrollable factors (system crash, Network Abnormal etc.), cause the loss of data of user's typing, user is forced to have to typing again, this is a kind of bad Consumer's Experience, 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 systems in which, when causing loss of data when above-mentioned scene generation, system can help user to give the data of typing for change automatically, this will be a kind of extraordinary system performance, improving Consumer's Experience simultaneously, 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, provides a kind of method of automatic preservation user interface state.The method is by being user interface definition one group interface standard, this group interface standard defines in interface the attribute and operation preserving and reload required for user interface state, thus it is temporary and reload to realize the User Status of the arbitrary interface meeting interface standard based on this group interface standard, avoids user's obliterated data.
Technical assignment of the present invention realizes 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 followed at concrete interface and preserve to realize user interface state;
Control when B. running: during system cloud gray model, by the interface standard defined in operation steps A, the viewstate realizing exemplary user interface is preserved and is loaded.
Interface standard described in steps A comprises Status view interface, viewstate context, viewstate conversation strategy interface, viewstate loads policy interface, viewstate deletion strategy interface, the configuration of viewstate conversation strategy, viewstate loading is tactful configures and the configuration of viewstate deletion strategy
Described " view " is the translator of Chinese of English " View ", is used for abstract representative user interface.
Described Status view interface is for defining the interface standard needing to realize the user interface needs realization that interfacial state is preserved.
" Status view interface " comprises seven attributes: view identification, view extension mark, the need of preservation interfacial state, whether can load viewstate, conversation strategy mark, load strategy mark, deletion strategy mark.
" Status view interface " comprises the event of " viewstate change ", 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 relevant information of viewstate, comprises five attributes: view identification, extended view mark, data source, extension storage, finally change the time.
Described viewstate conversation strategy interface is used for when viewstate preserved by needs, and the preservation of execution view state, comprises the operation of " preservation viewstate ".
Described viewstate loads policy interface and is used for when needs load viewstate, to the searching of " viewstate context ", mates, comprises the operation of " searching viewstate context ".
Described viewstate deletion strategy interface stores for deleting viewstate, comprises the operation of " deletion viewstate ".
Described viewstate conversation strategy is configured for " the view conversation strategy interface " set provided in record current system, comprises two operations: " obtaining the viewstate conversation strategy configuration of acquiescence ", " obtaining the configuration of viewstate conversation strategy ".
Described viewstate loads strategy and is configured for " the viewstate loading policy interface " set provided in record current system, comprises two operations: " viewstate obtaining acquiescence loads strategy configuration ", " obtain viewstate and load strategy configuration ".
Described viewstate deletion strategy is configured for " the viewstate deletion strategy interface " set provided in record current system, 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) interfacial state is preserved
A) interfacial state is preserved in backstage timing;
B) interfacial state is preserved when interfacial state changes;
(2) interfacial state is loaded
(3) interfacial state is deleted.
In " preservation interfacial state " scene, when carrying out the preservation of interface view state, first according to " Status view interface " that current interface realizes, obtain " the need of preservation interfacial state " and judge whether to need to carry out view preservation, if do not needed, terminating operation; Then system obtains " the conversation strategy mark " of " Status view interface ", if " conversation strategy mark " is not empty, then calls " configuration of view conversation strategy " and obtains the conversation strategy of specifying; If " conversation strategy mark " is empty, then call the conversation strategy that " configuration of view conversation strategy " obtains acquiescence;
After getting the strategy configuration of specifying, describe according to strategy configuration in a program, load the corresponding conversation strategy program achieving " viewstate conversation strategy ", in conversation strategy program, " reading interfacial state " method calling interface view gets " the viewstate context " of current interface view, and preserves user interface state; Wherein, viewstate conversation strategy, can be expanded by configuration mode, thus provides multiple conversation strategy.
When described " interfacial state is preserved in backstage timing " enables, system adopts the mechanism of automatic regular polling, at interval of a period of time, automatically generation one can preserve calling, in order to automatically to preserve interfacial state of interfacial state;
When described " preserving interfacial state when interfacial state changes " mechanism is enabled, " viewstate change " event of system meeting register interface view, when the event triggers, system carries out the preservation of interface view state.
In " loading interfacial state " scene, when system opens a user interface, system creation user interface, according to " Status view interface " that user interface realizes, " whether can load viewstate " according to " Status view interface " judges whether to need to carry out view loading: if need to load, then obtain " the loading strategy mark " of " Status view interface ", if " loading strategy mark " of getting be not for empty, then call " view loads strategy configuration " and obtain the loading strategy of specifying; If it is empty for " loading strategy mark ", then call the conversation strategy that " view loads strategy configuration " obtains acquiescence;
After getting the strategy configuration of specifying, describe according to strategy configuration in a program, load the corresponding loading strategy program achieving " viewstate loads strategy ", 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 ", then interrupt interfacial state loading procedure; If have found specific " viewstate context ", then " loading interfacial state " method calling " Status view interface " carries out load operation.
In " deletion interfacial state " scene, when the User Status that system is preserved automatically lost efficacy, need the viewstate that deletion system is preserved: " Status view interface " that system realizes according to present user interface, " the deletion strategy mark " of " Status view interface ", if " deletion strategy mark " is not empty, then calls " configuration of view deletion strategy " and obtain the deletion strategy of specifying; If " deletion strategy mark " is empty, then call the deletion strategy that " configuration of view deletion strategy " obtains acquiescence;
After getting the deletion strategy configuration of specifying, describe according to strategy configuration in a program, load the corresponding deletion strategy program achieving " viewstate deletion strategy ", in deletion strategy program, viewstate storage is deleted; Wherein, viewstate deletion strategy, can be expanded by configuration mode, thus provides multiple deletion strategy.
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, after inefficacy, carry out the functional characteristics such as deletion.Improving Consumer's Experience simultaneously, also can actually avoid or reduce due to loss of data bring loaded down with trivial details, inconvenient.
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
Be described in detail below with the method for specific embodiment to automatic preservation user interface state of the present invention with reference to Figure of description.
Embodiment one:
The method of automatic preservation user interface state of the present invention, comprises following steps:
A. defining interface standard: define the interface standard followed at concrete interface and preserve to realize user interface state;
Control when B. running: during system cloud gray model, by the interface standard defined in operation steps A, the viewstate realizing exemplary user interface is preserved and is loaded.
As shown in Figure 1: interface standard described in steps A comprises Status view interface, viewstate context, viewstate conversation strategy interface, viewstate loads policy interface, viewstate deletion strategy interface, the configuration of viewstate conversation strategy, viewstate loading is tactful configures and the configuration of viewstate deletion strategy
Described " view " is the translator of Chinese of English " View ", is used for abstract representative user interface.
Described Status view interface is for defining the interface standard needing to realize the user interface needs realization that interfacial state is preserved.
" Status view interface " comprises seven attributes: view identification, view extension mark, the need of preservation interfacial state, whether can load viewstate, conversation strategy mark, load strategy mark, deletion strategy mark, specifically describe as follows:
property Name implication
view identification for unique identification view, for the identification when preserving and load viewstate to view.
view extension identifies for accessory ID view, when some special circumstances of existence, need to distinguish view by this attribute is auxiliary when preserving and load viewstate.
the need of preservation interfacial state whether interfacial state preservation will be carried out for marking current user interface.This attribute is used to a precondition of carrying out the preservation of interface view state.
whether viewstate can be loaded whether can be loaded viewstate for marking current user interface, this attribute is used to a precondition before carrying out interface view state load.
conversation strategy identifies be used to specify the mark of viewstate conversation strategy.Viewstate preserving type can have multiple realization, and interface view can provide the setting to conversation strategy, when carrying out interface view state and preserving, if this strategy mark is not empty, can preserve user interface state according to the strategy of specifying.
load strategy mark be used to specify the mark that viewstate loads strategy.Viewstate load mode can have multiple realization, and interface view can provide the setting to loading strategy, when carrying out interface view state load, if this strategy mark is not empty, can load user interface state according to the strategy of specifying.
deletion strategy identifies be used to specify the mark of viewstate deletion strategy.Viewstate deletes mode can multiple realization, and interface view can provide the setting to deletion strategy, when carrying out interface view state and deleting, if this strategy mark is not empty, can delete user interface state according to the strategy of specifying.
" Status view interface " comprises the event of " viewstate change ", 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 preserve user interface state, read interface view state by this operation.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.It comprises the input parameter of " viewstate context " type.
Described viewstate context, for recording the relevant information of viewstate, comprises five attributes: view identification, extended view mark, data source, extension storage, finally change the time.Specifically describe as follows:
property Name implication
view identification for unique identification view, for the identification when preserving and load viewstate to view.
view extension identifies for accessory ID view, when some special circumstances of existence, need to distinguish view by this attribute is auxiliary when preserving and load viewstate.
data source for recording the data that interface view is held, 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, is processed by concrete user interface program.
finally change the time for recording the final updating time of " viewstate context ".
Described viewstate conversation strategy interface is used for when viewstate preserved by needs, and the preservation of execution view state, comprises the operation of " 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 and is used for when needs load viewstate, to the searching of " viewstate context ", mates, comprises the operation of " searching viewstate context ".Specifically describe as follows:
action name implication
load viewstate according to the view information of input, context is searched, mates, and load according to match condition.It comprises " Status view interface " parameter, without rreturn value.
Described viewstate deletion strategy interface stores for deleting viewstate, comprises the operation of " deletion viewstate ".Specifically describe as follows:
action name implication
delete viewstate according to the view information of input, delete corresponding viewstate and store.
Described viewstate conversation strategy is configured for " the view conversation strategy interface " set provided in record current system, 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 is a character string, for describing the specifying information needed for the loading of viewstate conversation strategy program.
obtain the configuration of viewstate conversation strategy according to the viewstate conversation strategy mark of input, obtain the configuration of viewstate conversation strategy.It comprises " viewstate conversation strategy mark " parameter, returns the configuration of a viewstate conversation strategy.If do not found, then return a null character string.
Described viewstate loads strategy and is configured for " the viewstate loading policy interface " set provided in record current system, comprises two operations: " viewstate obtaining acquiescence loads strategy configuration ", " obtain viewstate and load strategy configuration ".Specifically describe as follows:
action name implication
the viewstate obtaining acquiescence loads strategy configuration the viewstate obtaining acquiescence loads the configuration of strategy.Wherein, viewstate loads the configuration of strategy, is a character string, for describing the specifying information needed for the loading of viewstate loading strategy program.
obtain viewstate and load strategy configuration load strategy mark according to the viewstate of input, obtain the configuration that viewstate loads strategy.It comprises " viewstate loads a strategy mark " parameter, returns the configuration that a viewstate loads strategy.If do not found, then return a null character string.
Described viewstate deletion strategy is configured for " the viewstate deletion strategy interface " set provided in record current system, 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 is a character string, for describing the specifying information needed for the loading of viewstate deletion strategy program.
obtain the configuration of viewstate deletion strategy according to the viewstate deletion strategy mark of input, obtain the configuration of viewstate deletion strategy.It comprises " viewstate deletion strategy mark " parameter, returns the configuration of a viewstate deletion strategy.If do not found, then return a null character string.
Step B comprises following subfield scape:
(4) interfacial state is preserved
A) interfacial state is preserved in backstage timing;
B) interfacial state is preserved when interfacial state changes;
(5) interfacial state is loaded
(6) interfacial state is deleted.
" preserve interfacial state" scene, when carrying out the preservation of interface view state, first according to " Status view interface " that current interface realizes, obtain " the need of preservation interfacial state " and judge whether to need to carry out view preservation, if do not needed, terminating operation; Then system obtains " the conversation strategy mark " of " Status view interface ", if " conversation strategy mark " is not empty, then calls " configuration of view conversation strategy " and obtains the conversation strategy of specifying; If " conversation strategy mark " is empty, then call the conversation strategy that " configuration of view conversation strategy " obtains acquiescence;
After getting the strategy configuration of specifying, according to strategy configuration, the (description that program loads is described in a program, the mode loaded due to distinct program is different, various load mode is known technology), load the corresponding conversation strategy program achieving " viewstate conversation strategy ", in conversation strategy program, " reading interfacial state " method calling interface view gets " the viewstate context " of current interface view, and preserves user interface state; Wherein, viewstate conversation strategy, can be expanded by configuration mode, thus provides multiple conversation strategy.
When described " interfacial state is preserved in backstage timing " enables, system adopts the mechanism of automatic regular polling, at interval of a period of time, automatically generation one can preserve calling, in order to automatically to preserve interfacial state of interfacial state;
When described " preserving interfacial state when interfacial state changes " mechanism is enabled, " viewstate change " event of system meeting register interface view, when the event triggers, system carries out the preservation of interface view state.
" load interfacial state" scene; when system opens a user interface; system creation user interface; according to " Status view interface " that user interface realizes; " whether can load viewstate " according to " Status view interface " judges whether to need to carry out view loading: if need to load; then obtain " the loading strategy mark " of " Status view interface ", if " loading strategy mark " of getting be not for empty, then call " view loads strategy configuration " and obtain the loading strategy of specifying; If it is empty for " loading strategy mark ", then call the conversation strategy that " view loads strategy configuration " obtains acquiescence;
After getting the strategy configuration of specifying, according to strategy configuration, the (description that program loads is described in a program, the mode loaded due to distinct program is different, various load mode is known technology), load the corresponding loading strategy program achieving " viewstate loads strategy ", 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 ", then interrupt interfacial state loading procedure; If have found specific " viewstate context ", then " loading interfacial state " method calling " Status view interface " carries out load operation.
In " deletion interfacial state " scene, when the User Status that system is preserved automatically lost efficacy, need the viewstate that deletion system is preserved: " Status view interface " that system realizes according to present user interface, " the deletion strategy mark " of " Status view interface ", if " deletion strategy mark " is not empty, then calls " configuration of view deletion strategy " and obtain the deletion strategy of specifying; If " deletion strategy mark " is empty, then call the deletion strategy that " configuration of view deletion strategy " obtains acquiescence;
After getting the deletion strategy configuration of specifying, according to strategy configuration, the (description that program loads is described in a program, the mode loaded due to distinct program is different, various load mode is known technology), load the corresponding deletion strategy program achieving " viewstate deletion strategy ", in deletion strategy program, viewstate storage is deleted; Wherein, viewstate deletion strategy, can be expanded by configuration mode, thus provides multiple deletion strategy.
Embodiment two:
Illustrated by an actual scene of implementing, 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.For a simple customer information input interface.
? development phase, system is prefabricated for User Status operation three kinds of strategies: LocalViewStateSaveStrategy(interface view conversation strategy), LocalViewStateLoadStrategy(interface view load strategy), LocalViewSteateRemoveStategy(interface view deletion strategy).Three kinds of strategies provide the interfacial state preservation being kept at local storage mode, the strategy loading, delete.
For customer information input interface, 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.
Customer information input interface needs to realize " Status view interface ", and corresponding setup of attribute is as follows:
Customer information input interface will realize " reading interfacial state ", " loading interfacial state " (not describing in detail) simultaneously.
? operation phase, system, by " system regularly preserves interfacial state on backstage " mechanism, regularly preserves the data of not preserving in customer information input interface on backstage, assuming that automatically preserved 1 time every 1 minute.
User opens customer information input interface, have input numbering: 001, customer name: Zhang San, telephone number: 18600010001.At this moment, owing to there being other work temporarily, user have left.System, 1 minute time, automatically triggers on backstage and automatically preserves action: read customer information input interface, and reading " the need of preservation interfacial state " is "Yes", starts to perform automatic preservation.First read conversation strategy to be designated " LocalViewStateSaveStrategy ", then call the configuration information that " configuration of view conversation strategy " gets corresponding conversation strategy, carry out program loading, using current interface as " Status view interface " type transfer to " preservation viewstate " method of conversation strategy, " reading interfacial state " method in " Status view interface " is called in conversation strategy, get " the viewstate context " of current interface, state is saved in local storage.
User returns after half an hour, finds that system is overtime, after user logs in again, reopen customer information login interface, system reads customer information input interface, and reading " whether can load viewstate " is "Yes", starts the action of execution view state load.First read loading strategy to be designated " LocalViewStateLoadStrategy ", then call " view loads strategy configuration " and get the corresponding configuration information loading strategy, carry out program loading, give as " Status view interface " type transfer " loading viewstate " method loading strategy using current interface, load in strategy and find corresponding " viewstate context " in this locality stores according to " view identification " in " Status view interface ", then " loading interfacial state " method in " Status view interface " is called, import into " the viewstate context " that get, interfacial state is loaded.Such user finds, " numbering: 001, customer name: Zhang San, telephone number: 18600010001 " information of typing before has been retained.
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 preserved: system reads customer information input interface, reading " deletion strategy mark " is " LocalViewStateRemoveStrategy ", then call the configuration information that " configuration of view deletion strategy " gets corresponding deletion strategy, carry out program loading, using current interface as " Status view interface " type transfer to " deletion viewstate " method of deletion strategy, find corresponding " viewstate context " in this locality stores according to " view identification " in " Status view interface " in deletion strategy, corresponding " viewstate context " is deleted then from this locality stores.

Claims (6)

1. automatically preserve a method for user interface state, it is characterized in that comprising following steps:
1) defining interface standard: define the interface standard followed at concrete interface and preserve to realize user interface state,
Described interface standard comprises Status view interface, viewstate context, viewstate conversation strategy interface, viewstate loads policy interface, viewstate deletion strategy interface, the configuration of viewstate conversation strategy, viewstate loading is tactful configures and the configuration of viewstate deletion strategy
Described Status view interface is for defining the interface standard needing to realize the user interface needs realization that interfacial state is preserved, comprise seven attributes: view identification, view extension mark, the need of preservation interfacial state, whether can load viewstate, conversation strategy mark, load strategy mark, deletion strategy mark; Comprise the event of " viewstate change ": when interfacial state changes, this event can be triggered, 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 relevant information of viewstate, comprises five attributes: view identification, extended view mark, data source, extension storage, finally change the time;
Described viewstate conversation strategy interface is used for when viewstate preserved by needs, and the preservation of execution view state, comprises the operation of " preservation viewstate ";
Described viewstate loads policy interface and is used for when needs load viewstate, to the searching of " viewstate context ", mates, comprises the operation of " searching viewstate context ";
Described viewstate deletion strategy interface stores for deleting viewstate, comprises the operation of " deletion viewstate ";
Described viewstate conversation strategy is configured for " the view conversation strategy interface " set provided in record current system, comprises two operations: " obtaining the viewstate conversation strategy configuration of acquiescence ", " obtaining the configuration of viewstate conversation strategy ";
Described viewstate loads strategy and is configured for " the viewstate loading policy interface " set provided in record current system, comprises two operations: " viewstate obtaining acquiescence loads strategy configuration ", " obtain viewstate and load strategy configuration ";
Described viewstate deletion strategy is configured for " the viewstate deletion strategy interface " set provided in record current system, comprises two operations: " obtaining the viewstate deletion strategy configuration of acquiescence ", " obtaining the configuration of viewstate deletion strategy ";
2) control when running: during system cloud gray model, by the interface standard of definition in operation steps 1, the viewstate realizing exemplary user interface is preserved and is loaded.
2. the method for automatic preservation user interface state according to claim 1, is characterized in that step 2 comprises following subfield scape:
1) interfacial state is preserved
Interfacial state is preserved in backstage timing;
Interfacial state is preserved when interfacial state changes;
2) interfacial state is loaded
3) interfacial state is deleted.
3. the method for automatic preservation user interface state according to claim 2, it is characterized in that: in " preservation interfacial state " scene, when carrying out the preservation of interface view state, first according to " Status view interface " that current interface realizes, obtain " the need of preservation interfacial state " to judge whether to need to carry out view preservation, if do not needed, terminating operation; Then system obtains " the conversation strategy mark " of " Status view interface ", if " conversation strategy mark " is not empty, then calls " configuration of view conversation strategy " and obtains the conversation strategy of specifying; If " conversation strategy mark " is empty, then call the conversation strategy that " configuration of view conversation strategy " obtains acquiescence;
After getting the strategy configuration of specifying, describe according to strategy configuration in a program, load the corresponding conversation strategy program achieving " viewstate conversation strategy ", in conversation strategy program, " reading interfacial state " method calling interface view gets " the viewstate context " of current interface view, and preserves user interface state; Wherein, viewstate conversation strategy, is expanded by configuration mode, thus provides multiple conversation strategy.
4. the method for automatic preservation user interface state according to claim 2, it is characterized in that: when described " interfacial state is preserved in backstage timing " enables, system adopts the mechanism of automatic regular polling, at interval of a period of time, automatically generation one calling, in order to automatically to preserve interfacial state of interfacial state can be preserved;
When described " preserving interfacial state when interfacial state changes " mechanism is enabled, " viewstate change " event of system meeting register interface view, when the event triggers, system carries out the preservation of interface view state.
5. the method for automatic preservation user interface state according to claim 2, it is characterized in that: in " loading interfacial state " scene, when system opens a user interface, system creation user interface, according to " Status view interface " that user interface realizes, " whether can load viewstate " according to " Status view interface " judges whether to need to carry out view loading: if need to load, then obtain " the loading strategy mark " of " Status view interface ", if " loading strategy mark " of getting be not for empty, then call " view loads strategy configuration " and obtain the loading strategy of specifying, if it is empty for " loading strategy mark ", then call the conversation strategy that " view loads strategy configuration " obtains acquiescence,
After getting the strategy configuration of specifying, describe according to strategy configuration in a program, load the corresponding loading strategy program achieving " viewstate loads strategy ", 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 ", then interrupt interfacial state loading procedure; If have found specific " viewstate context ", then " loading interfacial state " method calling " Status view interface " carries out load operation.
6. the method for automatic preservation user interface state according to claim 2, it is characterized in that: in " deletion interfacial state " scene, when the User Status that system is preserved automatically lost efficacy, need the viewstate that deletion system is preserved: " Status view interface " that system realizes according to present user interface, " the deletion strategy mark " of " Status view interface ", if " deletion strategy mark " is not empty, then calls " configuration of view deletion strategy " and obtain the deletion strategy of specifying; If " deletion strategy mark " is empty, then call the deletion strategy that " configuration of view deletion strategy " obtains acquiescence;
After getting the deletion strategy configuration of specifying, describe according to strategy configuration in a program, load the corresponding deletion strategy program achieving " viewstate deletion strategy ", in deletion strategy program, viewstate storage is deleted; Wherein, viewstate deletion strategy, is expanded by configuration mode, thus provides multiple deletion strategy.
CN201210408593.6A 2012-10-24 2012-10-24 A kind of method of automatic preservation user interface state Active CN102937923B (en)

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 CN102937923A (en) 2013-02-20
CN102937923B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
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
CN106815030B (en) * 2017-02-07 2020-04-24 浪潮通用软件有限公司 Universal method for processing user interface display rule
CN108874461B (en) * 2017-11-30 2021-05-14 视联动力信息技术股份有限公司 Loading method of video networking module and video networking terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101263456A (en) * 2005-09-15 2008-09-10 英特尔公司 Method and device for rapid recovery
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8453047B2 (en) * 2008-05-27 2013-05-28 Appfolio, Inc. Systems and methods for automatic submission of forms on a web page

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101263456A (en) * 2005-09-15 2008-09-10 英特尔公司 Method and device for rapid recovery
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

Also Published As

Publication number Publication date
CN102937923A (en) 2013-02-20

Similar Documents

Publication Publication Date Title
US20190026193A1 (en) Method and apparatus for executing data recovery operation
CN110309218B (en) Data exchange system and data writing method
CN102937923B (en) A kind of method of automatic preservation user interface state
US11232071B2 (en) Regressable differential data structures
US8380663B2 (en) Data integrity in a database environment through background synchronization
CN105989160A (en) Memory data persistence method and apparatus for Redis database
CN111651296A (en) Intercept backup method, device, device and storage medium for data deletion operation
CN110717130B (en) Dotting method, dotting device, dotting terminal and storage medium
WO2021169496A1 (en) Data reading method, apparatus, and device, and storage medium
WO2017113317A1 (en) File editing method and file editor
CN111159142B (en) Data processing method and device
US20160011904A1 (en) Intelligent application back stack management
CN112000649B (en) Method and device for synchronizing incremental data based on map reduce
CN109597707A (en) Clone volume data copying method, device and computer readable storage medium
CN102073554A (en) Method and device for recovering files closed abnormally
CN110413711A (en) A kind of variance data acquisition methods and its storage medium
CN102609336A (en) Data administration method and data administration system
CN110704468A (en) Data updating method and device and controller
EP3082050A1 (en) Mass data fusion storage method and system
CN115544169A (en) Data synchronization method, device, equipment and storage medium
CN112632266B (en) Data writing method and device, computer equipment and readable storage medium
CN102760212A (en) Virtual desktop malicious code detecting method based on storage mirroring cloning mechanism
CN114036179A (en) Method and device for processing slow query operation
CN111061471B (en) Method and system for controlling display of interface control element
JP2018109898A (en) Data migration system

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