rails.game.action
Interface ActionTaker

All Known Implementing Classes:
ActionButton, ActionCheckBoxMenuItem, ActionLabel, ActionMenuItem, ClickField

public interface ActionTaker

Interface ActionTaker should be implemented by subclasses of Swing components to which an action (PossibleAction object) must be tied. Example: ActionButton, a subclass of JButton. When the component is activated, the action to execute is immediately available; no lookup needed.

It is possible to attach more than one PossibleAction. In such a case the code must pick up the list and present a choice to the user.

Author:
Erik Vos

Method Summary
 void addPossibleAction(PossibleAction o)
          Add a PossibleAction
 void clearPossibleActions()
          Clear the PossibleActions
 java.util.List<PossibleAction> getPossibleActions()
          Get the current PossibleActions
 void setPossibleAction(PossibleAction o)
          Set just one PossibleAction (any previously added actions are removed beforehand)
 

Method Detail

addPossibleAction

void addPossibleAction(PossibleAction o)
Add a PossibleAction


getPossibleActions

java.util.List<PossibleAction> getPossibleActions()
Get the current PossibleActions


clearPossibleActions

void clearPossibleActions()
Clear the PossibleActions


setPossibleAction

void setPossibleAction(PossibleAction o)
Set just one PossibleAction (any previously added actions are removed beforehand)