S - the state interfaceO - the concrete typepublic abstract class AbstractStateHandler<S,O> extends Object
| Modifier and Type | Method and Description |
|---|---|
abstract void |
applyState()
Applies the currently loaded state to the current stateful object.
|
O |
getObject() |
S |
getState() |
void |
loadState()
Starts to load the state for the given object.
|
void |
saveState()
TODO fire a before event to allow it to be canceled? can this be deferred?
fire an event when the save was successful?
|
public abstract void applyState()
public O getObject()
public S getState()
public void loadState()
public void saveState()
Copyright © 2012. All Rights Reserved.