org.jcreme.swing.table.state
Class JTableMemento
java.lang.Object
org.jcreme.state.BaseMemento
org.jcreme.swing.state.BaseUIMemento
org.jcreme.swing.table.state.JTableMemento
- All Implemented Interfaces:
- Memento
- Direct Known Subclasses:
- JColoredTableMemento
- public class JTableMemento
- extends BaseUIMemento
This is the Memento class for the JTable.
- Version:
- $Revision: 1.2 $
- Author:
- $Author: dbregeon $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MEMENTO_CLASS_PREFERENCE
public static final java.lang.String MEMENTO_CLASS_PREFERENCE
- See Also:
- Constant Field Values
TABLE_COLUMN_MODEL_PREFERENCE
public static final java.lang.String TABLE_COLUMN_MODEL_PREFERENCE
- See Also:
- Constant Field Values
AUTO_RESIZE_MODE_PREFERENCE
public static final java.lang.String AUTO_RESIZE_MODE_PREFERENCE
- See Also:
- Constant Field Values
DRAG_ENABLED_PREFERENCE
public static final java.lang.String DRAG_ENABLED_PREFERENCE
- See Also:
- Constant Field Values
JTableMemento
public JTableMemento()
setTableColumnModelMemento
public void setTableColumnModelMemento(TableColumnModelMemento memento)
- Parameters:
memento -
getTableColumnModelMemento
public TableColumnModelMemento getTableColumnModelMemento()
- Returns:
- the Memento for the TableColumnModel.
updateMemento
public void updateMemento(java.lang.Object o)
throws java.lang.IllegalArgumentException,
MementoException
- Description copied from interface:
Memento
- Updates the contents of the Memento from values in o.
- Parameters:
o - the Object to remember.
- Throws:
MementoException - if an error occured while updating the memento contents.
java.lang.IllegalArgumentException - if this Memento can not handle o.- See Also:
Memento.updateMemento(Object)
updateObject
public void updateObject(java.lang.Object o)
throws java.lang.IllegalArgumentException,
MementoException
- Description copied from interface:
Memento
- Updates the Object o with values stored in this Memento.
- Parameters:
o - the Object to update.
- Throws:
MementoException - if an error occured while updating the object.
java.lang.IllegalArgumentException - if this Memento can not handle o.- See Also:
Memento.updateObject(Object)
store
public void store(java.util.prefs.Preferences preferences)
throws MementoException
- Description copied from interface:
Memento
- This method enables to store the Memento into Preferences.
- Parameters:
preferences - the Preferences node where the Memento should be stored.
- Throws:
MementoException - if an error occured while storing the memento contents
in the preferences.- See Also:
Memento.store(Preferences)
load
public void load(java.util.prefs.Preferences preferences)
throws MementoException
- Description copied from interface:
Memento
- This method enables to restore a Memento from Preferences.
- Parameters:
preferences - the Preferences node from which the Memento should be loaded.
- Throws:
MementoException - if an error occured while loading the memento contents
from the preferences.- See Also:
Memento.load(Preferences)
Copyright 2006 null. All Rights Reserved.