USER INTERFACE STATE SAVING AND RESTORATION
First Claim
1. A computer-implemented method for user interface state saving and restoration, the method comprising:
- receiving a first data value from a user, the first data value corresponding to an element of a view;
propagating the first data value to a property of a model;
detecting a first event, the first event corresponding to the view;
identifying one or more properties corresponding to the model, the one or more properties including the property;
serializing the one or more properties to a memory as a stored model;
associating the stored model with a state identifier;
detecting a second event;
deserializing the stored model, the deserializing including applying one or more data values of the stored model to the one or more properties; and
propagating a data value of the one or more data values to the element of the view, wherein the data value corresponds to the first data value.
1 Assignment
0 Petitions
Accused Products
Abstract
Methods, systems, and computer program products are included to persist a state of an application to a memory and to restore the state of the application from the memory. The method includes leveraging two-way binding between a model and a view of the application in order to persist at least a portion of the model to the memory as a state. The persisting of the model to the memory may be performed automatically. This state may later be restored and applied to the model. Updates to the model based on the state restoration are propagated to the view, thereby restoring at least a portion of the view to its appearance at the time the model was persisted to the memory.
9 Citations
20 Claims
-
1. A computer-implemented method for user interface state saving and restoration, the method comprising:
-
receiving a first data value from a user, the first data value corresponding to an element of a view; propagating the first data value to a property of a model; detecting a first event, the first event corresponding to the view; identifying one or more properties corresponding to the model, the one or more properties including the property; serializing the one or more properties to a memory as a stored model; associating the stored model with a state identifier; detecting a second event; deserializing the stored model, the deserializing including applying one or more data values of the stored model to the one or more properties; and propagating a data value of the one or more data values to the element of the view, wherein the data value corresponds to the first data value. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A non-transitory computer-readable medium, comprising computer-readable instructions for user interface state saving and restoring leveraging two-way data-binding, the computer-readable instructions executable by a processor to cause the processor to:
-
propagate a user input from a first element of a view to a first property of a model; detect a first event; based on the first event, trigger a persist state operation, the persist state operation including; identifying one or more properties corresponding to an active model, the one or more properties including the first property; storing the one or more properties in a memory as a state, the storing including serializing the one or more properties; and associating the state with a state identifier; detect a second event; based on the second event, trigger a restore state operation, the restore state operation including; applying the state to the model, the applying including deserializing the state to obtain the one or more properties; and propagating the one or more properties to one or more elements of the view, the one or more elements including the first element. - View Dependent Claims (11, 13, 14)
-
-
12. The medium of 10, wherein the memory includes a database, wherein the state identifier is stored in the database as a key, wherein the state is stored in the database as a value associated with the key.
-
15. A system including a user interface, the system comprising:
-
a processor and a memory; an application including a model, a view, and a two-way binding between the model and the view; the view to receive a user input; the model to store the user input as a first property; the application further including a state manager, the state manager executed by the processor to; retrieve one or more properties of the model;
the one or more properties including the first property;serialize and store the one or more properties in the memory as a state; and deserialize the one or more properties from the memory, the deserializing including applying the one or more properties to the model. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification