|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.bs.mdi.swing.SwingCommandTrigger
Enhanced CommandTrigger with additional GUI functionality
| Constructor Summary | |
SwingCommandTrigger(SwingCommand command)
Creates a new command trigger. |
|
| 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. |
abstract boolean |
removeFrom(Container container)
Removes this trigger from the sepecified container. |
abstract void |
setEnabled(boolean enabled)
Enables or disables this command trigger. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwingCommandTrigger(SwingCommand command)
command - the command to be associated with the trigger| Method Detail |
public Command getCommand()
CommandTrigger
getCommand in interface CommandTriggerpublic abstract void setEnabled(boolean enabled)
CommandTrigger
setEnabled in interface CommandTriggerenabled - true if this trigger should be enabled, false otherwisepublic void execute()
CommandTriggergetCommand().execute().
execute in interface CommandTriggerpublic abstract boolean removeFrom(Container container)
container - the container which is supposed to contain this trigger
public void commandExecuted(CommandTrigger trigger)
CommandTrigger
commandExecuted in interface CommandTriggertrigger - the trigger which made the command executepublic void commandUpdated()
CommandTrigger
commandUpdated in interface CommandTrigger
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||