|
|||||||||||
| 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
org.jcreme.swing.table.columnmodel.state.BaseTableColumnMemento
This Memento enables to persist the state of a TableColumn.
| Field Summary | |
static java.lang.String |
COLUMN_WIDTH_PREFERENCE
|
static java.lang.String |
HEADER_VALUE_PREFERENCE
|
static java.lang.String |
IDENTIFIER_PREFERENCE
|
static java.lang.String |
MAX_COLUMN_WIDTH_PREFERENCE
|
static java.lang.String |
MIN_COLUMN_WIDTH_PREFERENCE
|
static java.lang.String |
MODEL_INDEX_PREFERENCE
|
static java.lang.String |
RESIZABLE_PREFERENCE
|
protected javax.swing.table.TableColumn |
tableColumn
The TableColumn to persist. |
| Fields inherited from class org.jcreme.swing.state.BaseUIMemento |
BLUE_PREFERENCE, GREEN_PREFERENCE, HEIGHT_PREFERENCE, RED_PREFERENCE, WIDTH_PREFERENCE, X_PREFERENCE, Y_PREFERENCE |
| Fields inherited from class org.jcreme.state.BaseMemento |
STORED_OBJECT_TYPE_PREFERENCE, SUB_MEMENTO_CONTENTS_PREFERENCE, SUB_MEMENTO_TYPE_PREFERENCE |
| Constructor Summary | |
BaseTableColumnMemento()
|
|
| Method Summary | |
void |
load(java.util.prefs.Preferences preferences)
This method enables to restore a Memento from Preferences. |
protected java.io.Serializable |
loadObject(java.util.prefs.Preferences p,
java.lang.String propertyName)
This method restore a Serializable from a Byte array. |
void |
store(java.util.prefs.Preferences preferences)
This method enables to store the Memento into Preferences. |
protected void |
storeObject(java.io.Serializable o,
java.util.prefs.Preferences p,
java.lang.String propertyName)
This method stores a Serializable as a Byte array. |
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. |
| Methods inherited from class org.jcreme.swing.state.BaseUIMemento |
loadColor, loadDimension, loadPoint, storeColor, storeDimension, storePoint |
| 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 |
| Field Detail |
public static final java.lang.String RESIZABLE_PREFERENCE
public static final java.lang.String MODEL_INDEX_PREFERENCE
public static final java.lang.String HEADER_VALUE_PREFERENCE
public static final java.lang.String IDENTIFIER_PREFERENCE
public static final java.lang.String COLUMN_WIDTH_PREFERENCE
public static final java.lang.String MIN_COLUMN_WIDTH_PREFERENCE
public static final java.lang.String MAX_COLUMN_WIDTH_PREFERENCE
protected transient javax.swing.table.TableColumn tableColumn
| Constructor Detail |
public BaseTableColumnMemento()
| Method Detail |
public void store(java.util.prefs.Preferences preferences)
throws MementoException
Memento
preferences - the Preferences node where the Memento should be stored.
MementoException - if an error occured while storing the memento contents
in the preferences.org.jcreme.swing.table.state.TableColumnMemento#store(java.util.prefs.Preferences)
public void load(java.util.prefs.Preferences preferences)
throws MementoException
Memento
preferences - the Preferences node from which the Memento should be loaded.
MementoException - if an error occured while loading the memento contents
from the preferences.org.jcreme.swing.table.state.TableColumnMemento#load(java.util.prefs.Preferences)
public void updateMemento(java.lang.Object o)
throws java.lang.IllegalArgumentException,
MementoException
Memento
o - the Object to remember.
MementoException - if an error occured while updating the memento contents.
java.lang.IllegalArgumentException - if this Memento can not handle o.Memento.updateMemento(Object)
public void updateObject(java.lang.Object o)
throws java.lang.IllegalArgumentException,
MementoException
Memento
o - the Object to update.
MementoException - if an error occured while updating the object.
java.lang.IllegalArgumentException - if this Memento can not handle o.Memento.updateObject(Object)
protected void storeObject(java.io.Serializable o,
java.util.prefs.Preferences p,
java.lang.String propertyName)
o - the object to store.p - the Preferences node to use.propertyName - the property name associated to the object.
protected java.io.Serializable loadObject(java.util.prefs.Preferences p,
java.lang.String propertyName)
p - the Preferences node that contains the object.propertyName - the property name associated to the object.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||