SwatState
public interface SwatState
| Method Summary | |
|---|---|
| mixed | getState() Get the state of the control. |
| void | setState(mixed state) Set the state of the control. |
public mixed getState()
Get the state of the control
Used to remember the current state of the control. For example,
SwatEntry implements this method to return its $value property,
but can return any variable type, including array, that represents the
control's current state. Sub-classes should override and implement this
method to store their state.
public void setState(mixed state)
Set the state of the control
Used to set the current state of the control back to a stored state. This implementation of this method should correspond to the implementation of getState(). Sub-classes should override and implement this method to store their state.
state - The state to load into the control.
Interface for controls that can store and restore their state.