org.jcreme.swing.table.columnmodel.state
Class SortableTableColumnMemento

java.lang.Object
  extended byorg.jcreme.state.BaseMemento
      extended byorg.jcreme.swing.state.BaseUIMemento
          extended byorg.jcreme.swing.table.columnmodel.state.BaseTableColumnMemento
              extended byorg.jcreme.swing.table.columnmodel.state.SortableTableColumnMemento
All Implemented Interfaces:
Memento

public class SortableTableColumnMemento
extends BaseTableColumnMemento

This Memento enables to persist the state of a SortableTableColumn.

Version:
$Revision: 1.2 $
Author:
$Author: dbregeon $

Field Summary
static java.lang.String COLUMN_CLASS_PREFERENCE
           
static java.lang.String COMPARATOR_PREFERENCE
           
static java.lang.String ORDER_IN_SORT_PREFERENCE
           
static java.lang.String SORT_ORDER_PREFERENCE
           
 
Fields inherited from class org.jcreme.swing.table.columnmodel.state.BaseTableColumnMemento
COLUMN_WIDTH_PREFERENCE, HEADER_VALUE_PREFERENCE, IDENTIFIER_PREFERENCE, MAX_COLUMN_WIDTH_PREFERENCE, MIN_COLUMN_WIDTH_PREFERENCE, MODEL_INDEX_PREFERENCE, RESIZABLE_PREFERENCE, tableColumn
 
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
SortableTableColumnMemento()
           
 
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.
 
Methods inherited from class org.jcreme.swing.table.columnmodel.state.BaseTableColumnMemento
loadObject, storeObject
 
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

SORT_ORDER_PREFERENCE

public static final java.lang.String SORT_ORDER_PREFERENCE
See Also:
Constant Field Values

ORDER_IN_SORT_PREFERENCE

public static final java.lang.String ORDER_IN_SORT_PREFERENCE
See Also:
Constant Field Values

COMPARATOR_PREFERENCE

public static final java.lang.String COMPARATOR_PREFERENCE
See Also:
Constant Field Values

COLUMN_CLASS_PREFERENCE

public static final java.lang.String COLUMN_CLASS_PREFERENCE
See Also:
Constant Field Values
Constructor Detail

SortableTableColumnMemento

public SortableTableColumnMemento()
Method Detail

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.

Specified by:
load in interface Memento
Overrides:
load in class BaseTableColumnMemento
Throws:
MementoException
See Also:
org.jcreme.swing.table.state.TableColumnMemento#load(java.util.prefs.Preferences)

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.

Specified by:
store in interface Memento
Overrides:
store in class BaseTableColumnMemento
Throws:
MementoException
See Also:
org.jcreme.swing.table.state.TableColumnMemento#store(java.util.prefs.Preferences)

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.

Specified by:
updateMemento in interface Memento
Overrides:
updateMemento in class BaseTableColumnMemento
Throws:
java.lang.IllegalArgumentException
MementoException
See Also:
org.jcreme.swing.table.columnmodel.state.BaseTableColumnMemento#updateMemento()

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.

Specified by:
updateObject in interface Memento
Overrides:
updateObject in class BaseTableColumnMemento
Throws:
java.lang.IllegalArgumentException
MementoException
See Also:
org.jcreme.swing.table.columnmodel.state.BaseTableColumnMemento#updateObject()


Copyright 2006 null. All Rights Reserved.