|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.bs.mdi.swing.SwingCommandTrigger
org.bs.mdi.swing.SwingCommandMenu
A Wrapper for JMenus which adds CommandTrigger functionality.
| Constructor Summary | |
SwingCommandMenu(SwingCommand command)
Creates a new SwingCommandMenu and associates it with the given command. |
|
| Method Summary | |
void |
actionPerformed(ActionEvent e)
|
void |
commandUpdated()
Informs this trigger that the associated command has changed. |
static JMenu |
createMenu(SwingCommand command)
Creates a new menu and associates it with the given command. |
JMenu |
getMenu()
Gets the menu "wrapped" behind this object. |
boolean |
removeFrom(Container container)
Removes this trigger from the sepecified container. |
void |
setEnabled(boolean enabled)
Enables or disables this command trigger. |
| Methods inherited from class org.bs.mdi.swing.SwingCommandTrigger |
commandExecuted, execute, getCommand |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwingCommandMenu(SwingCommand command)
command - the command to associate this menu with| Method Detail |
public static JMenu createMenu(SwingCommand command)
return new SwingCommandMenu(command).getMenu()
command - the command to associated this menu with
public JMenu getMenu()
public void setEnabled(boolean enabled)
CommandTrigger
setEnabled in interface CommandTriggersetEnabled in class SwingCommandTriggerpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void commandUpdated()
CommandTrigger
commandUpdated in interface CommandTriggercommandUpdated in class SwingCommandTriggerpublic boolean removeFrom(Container container)
SwingCommandTrigger
removeFrom in class SwingCommandTriggercontainer - the container which is supposed to contain this trigger
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||