org.escot
Interface ActionController
- public interface ActionController
The ActionController interface subscribes to an Action.
A component that needs to subscribe to Actions
may add one or more dynamic subscribers which implement
ActionController. When an Action is wired to the ActionController,
setAction is invoked with the Action as the parameter.
Typically, the component will add the Action as an ActionListener
to an object which triggers the Action, such as a button.
By convention, setAction(null) undoes setting
an action.
setAction
public void setAction(Action act)
- Sets the action for this object
- Parameters:
act - the Action for this object
getAction
public Action getAction()
- Returns the action.
- Returns:
- the Action for this object.