S - the state interface
O - the concrete type
Direct Known Subclasses:
public abstract class
Simple class to add support for reading and writing state. Can be subclassed
and a concrete type given to O (such as a Store or Component subclass), and a
particular interface S can be defined to hold the state for this object.
Modifier and Type
Method and Description
Applies the currently loaded state to the current stateful object.
Starts to load the state for the given object.
TODO fire a before event to allow it to be canceled? can this be deferred?
fire an event when the save was successful?
Returns: the currently loaded state. The state instance may not be set, so
this may return null.
Copyright © 2012. All Rights Reserved.