|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jcreme.state.BaseMemento
org.jcreme.swing.state.BaseUIMemento
This class is used as a base class for all the Creme Mementos. It specifies that the update of a Memento should be done through an updateMemento method. That method is also used to ensure that a Memento is up to date before it is serialized.
| Field Summary | |
static java.lang.String |
BLUE_PREFERENCE
|
static java.lang.String |
GREEN_PREFERENCE
|
static java.lang.String |
HEIGHT_PREFERENCE
|
static java.lang.String |
RED_PREFERENCE
|
static java.lang.String |
WIDTH_PREFERENCE
|
static java.lang.String |
X_PREFERENCE
|
static java.lang.String |
Y_PREFERENCE
|
| Fields inherited from class org.jcreme.state.BaseMemento |
STORED_OBJECT_TYPE_PREFERENCE, SUB_MEMENTO_CONTENTS_PREFERENCE, SUB_MEMENTO_TYPE_PREFERENCE |
| Constructor Summary | |
BaseUIMemento()
|
|
| Method Summary | |
protected java.awt.Color |
loadColor(java.util.prefs.Preferences node)
Enables to recover a Color stored in the preferences as its RGB components. |
protected java.awt.Dimension |
loadDimension(java.util.prefs.Preferences node)
Enables to recover Dimension stored in the preferences. |
protected java.awt.Point |
loadPoint(java.util.prefs.Preferences node)
Enables to store a Point into the preferences. |
protected void |
storeColor(java.awt.Color color,
java.util.prefs.Preferences node)
Enables to store a Color into the preferences as its RGB components. |
protected void |
storeDimension(java.awt.Dimension dimension,
java.util.prefs.Preferences node)
Enables to store a Dimension into the preferences. |
protected void |
storePoint(java.awt.Point point,
java.util.prefs.Preferences node)
Enables to store a Point into the preferences. |
| Methods inherited from class org.jcreme.state.BaseMemento |
buildObject, getObjectType, loadSubMemento, storeSubMemento |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jcreme.state.Memento |
load, store, updateMemento, updateObject |
| Field Detail |
public static final java.lang.String RED_PREFERENCE
public static final java.lang.String GREEN_PREFERENCE
public static final java.lang.String BLUE_PREFERENCE
public static final java.lang.String WIDTH_PREFERENCE
public static final java.lang.String HEIGHT_PREFERENCE
public static final java.lang.String X_PREFERENCE
public static final java.lang.String Y_PREFERENCE
| Constructor Detail |
public BaseUIMemento()
| Method Detail |
protected void storeColor(java.awt.Color color,
java.util.prefs.Preferences node)
color - the Color to store.node - the node to store the color in.protected java.awt.Color loadColor(java.util.prefs.Preferences node)
node - the node in which the color was saved.
protected void storeDimension(java.awt.Dimension dimension,
java.util.prefs.Preferences node)
dimension - the Dimension to store.node - the node to store the Dimension in.protected java.awt.Dimension loadDimension(java.util.prefs.Preferences node)
node - the node in which the Dimension was stored.
protected void storePoint(java.awt.Point point,
java.util.prefs.Preferences node)
point - the Point to store.node - the node to store the Point in.protected java.awt.Point loadPoint(java.util.prefs.Preferences node)
node - the node in which the Point was stored.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||