com.fruitioninc.jwc
Class TableStateManager

java.lang.Object
  |
  +--com.fruitioninc.jwc.TableStateManager
All Implemented Interfaces:
StateManager

public class TableStateManager
extends java.lang.Object
implements StateManager

Moves state into and out of a Table component.


Constructor Summary
TableStateManager()
           
 
Method Summary
 void getProperties(Memento momento, Component component)
          Add the state of a component to a Memento object.
 java.lang.String[] marshall(Component component, java.lang.String name, java.lang.Object value)
          Converts an value from a model to a string representation.
 void setProperty(Component component, java.lang.String name, java.lang.String[] values)
          Set a property on a component.
 java.lang.Object unmarshall(Component component, java.lang.String name, java.lang.String[] values)
          Converts an array of strings to an appropriate object for a components model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableStateManager

public TableStateManager()
Method Detail

getProperties

public void getProperties(Memento momento,
                          Component component)
Description copied from interface: StateManager
Add the state of a component to a Memento object.

Specified by:
getProperties in interface StateManager

setProperty

public void setProperty(Component component,
                        java.lang.String name,
                        java.lang.String[] values)
Description copied from interface: StateManager
Set a property on a component.

Specified by:
setProperty in interface StateManager

unmarshall

public java.lang.Object unmarshall(Component component,
                                   java.lang.String name,
                                   java.lang.String[] values)
Description copied from interface: StateManager
Converts an array of strings to an appropriate object for a components model.

Specified by:
unmarshall in interface StateManager
Parameters:
component - the component the values are being converted for
name - the name of the field on the component's model that the values are for
values - the array of strings to convert

marshall

public java.lang.String[] marshall(Component component,
                                   java.lang.String name,
                                   java.lang.Object value)
Description copied from interface: StateManager
Converts an value from a model to a string representation.

Specified by:
marshall in interface StateManager
Parameters:
component - the component the value is being converted for
name - the name of the field on the component's model that the value is from
value - the value to convert