|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface specifies Mementos. Mementos are classes used to store the state of presentation objects. Functional objects states should be persisted differently. Mementos are designed to be stored in Preferences, whatever the actual implementation of these.
| Method Summary | |
void |
load(java.util.prefs.Preferences preferences)
This method enables to restore a Memento from Preferences. |
void |
store(java.util.prefs.Preferences preferences)
This method enables to store the Memento into Preferences. |
void |
updateMemento(java.lang.Object o)
Updates the contents of the Memento from values in o. |
void |
updateObject(java.lang.Object o)
Updates the Object o with values stored in this Memento. |
| Method Detail |
public void store(java.util.prefs.Preferences preferences)
throws MementoException
preferences - the Preferences node where the Memento should be stored.
MementoException - if an error occured while storing the memento contents
in the preferences.
public void load(java.util.prefs.Preferences preferences)
throws MementoException
preferences - the Preferences node from which the Memento should be loaded.
MementoException - if an error occured while loading the memento contents
from the preferences.
public void updateMemento(java.lang.Object o)
throws java.lang.IllegalArgumentException,
MementoException
o - the Object to remember.
java.lang.IllegalArgumentException - if this Memento can not handle o.
MementoException - if an error occured while updating the memento contents.
public void updateObject(java.lang.Object o)
throws java.lang.IllegalArgumentException,
MementoException
o - the Object to update.
java.lang.IllegalArgumentException - if this Memento can not handle o.
MementoException - if an error occured while updating the object.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||