|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for GUI elements which trigger commands.
| Method Summary | |
void |
commandExecuted(CommandTrigger trigger)
Informs this trigger that the associated command has been executed. |
void |
commandUpdated()
Informs this trigger that the associated command has changed. |
void |
execute()
Shortcut for getCommand().execute(). |
Command |
getCommand()
Gets the command which is associated with this command trigger. |
void |
setEnabled(boolean enabled)
Enables or disables this command trigger. |
| Method Detail |
public Command getCommand()
public void setEnabled(boolean enabled)
enabled - true if this trigger should be enabled, false otherwisepublic void execute()
getCommand().execute().
public void commandExecuted(CommandTrigger trigger)
trigger - the trigger which made the command executepublic void commandUpdated()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||