public abstract class ControllerState extends Object implements Observer
ControllerState is the core base class for the CHEF Tool's state objects.
State objects are used to store controller state for a tool. Specific state object implement this interface.
To support creation of controller state objects, make sure to supply a void constructor.
To support pooling of objects, implement the recycle() method to release any resources and restore the object to initial conditions before reuse.
| Constructor and Description |
|---|
ControllerState() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
String |
getKey()
Access a unique key for this state, combining the set id and the state id.
|
String |
getSetId() |
protected void |
init()
Init to startup values
|
void |
recycle()
Release any resources and restore the object to initial conditions to be reused.
|
void |
setId(String id) |
void |
setSetId(String id) |
void |
update(Observable o,
Object arg)
This method is called whenever the observed object is changed.
|
protected void init()
public void recycle()
public String getId()
public void setId(String id)
public String getSetId()
public void setSetId(String id)
public String getKey()
public void update(Observable o, Object arg)
notifyObservers method to have all the object's observers notified of the change. default implementation is to
cause the courier service to deliver to the interface controlled by my controller. Extensions can override.Copyright © 2003–2021 Sakai Project. All rights reserved.