|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.fruitioninc.jwc.DefaultStateManager
Default component state manager used by most components. FIXME: change this to make it possible to extend it to support the marshalling/unmarshalling of more types with the need to modify it.
| Constructor Summary | |
DefaultStateManager()
|
|
| Method Summary | |
void |
getProperties(Memento state,
Component component)
Add the state of a component to a momento. |
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 |
public DefaultStateManager()
| Method Detail |
public void getProperties(Memento state,
Component component)
getProperties in interface StateManager
public void setProperty(Component component,
java.lang.String name,
java.lang.String[] values)
setProperty in interface StateManager
public java.lang.String[] marshall(Component component,
java.lang.String name,
java.lang.Object value)
StateManager
marshall in interface StateManagercomponent - the component the value is being converted forname - the name of the field on the component's model that the value is fromvalue - the value to convert
public java.lang.Object unmarshall(Component component,
java.lang.String name,
java.lang.String[] values)
StateManager
unmarshall in interface StateManagercomponent - the component the values are being converted forname - the name of the field on the component's model that the values are forvalues - the array of strings to convert
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||