|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
void addPossibleAction(PossibleAction o)
java.util.List<PossibleAction> getPossibleActions()
void clearPossibleActions()
void setPossibleAction(PossibleAction o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |