|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommandUIFactory
The CommandUIFactory is used to create menu items and tool bar buttons for different types of a
instance. It is also used to add context dependent
menu items to a menu.
Command
| Method Summary | |
|---|---|
JPopupMenu |
addContextDependentMenuItems(String context,
JPopupMenu popup)
Adds menu items to the given popup menu. |
JMenuItem |
createMenuItem(CommandGroup commandGroup)
Creates a menu item for the given command group. |
JMenuItem |
createMenuItem(ExecCommand command)
Creates a menu item for the given executable command. |
JMenuItem |
createMenuItem(ToolCommand command)
Creates a menu item for the given tool command. |
AbstractButton |
createToolBarButton(CommandGroup commandGroup)
Creates a tool bar button for the given command group. |
AbstractButton |
createToolBarButton(ExecCommand command)
Creates a tool bar button for the given executable command. |
AbstractButton |
createToolBarButton(ToolCommand command)
Creates a tool bar button for the given tool command. |
CommandManager |
getCommandManager()
Gets the command manager for this factory. |
boolean |
isShowingDisabledMenuItems()
Gets whether or not disabled menut items should be added to a menu in the method. |
void |
setCommandManager(CommandManager commandManager)
Sets the command manager for this factory. |
void |
setShowingDisabledMenuItems(boolean showingDisabledMenuItems)
Sets whether or not disabled menut items should be added to a menu in the method. |
| Method Detail |
|---|
CommandManager getCommandManager()
null.void setCommandManager(CommandManager commandManager)
commandManager - the command manager, can be null.boolean isShowingDisabledMenuItems()
addContextDependentMenuItems(java.lang.String, javax.swing.JPopupMenu) method.
true if sovoid setShowingDisabledMenuItems(boolean showingDisabledMenuItems)
addContextDependentMenuItems(java.lang.String, javax.swing.JPopupMenu) method.
showingDisabledMenuItems - true if soJMenuItem createMenuItem(ExecCommand command)
command - the executable command, must not be null
JMenuItem createMenuItem(ToolCommand command)
command - the tool command, must not be null
null
JMenuItem createMenuItem(CommandGroup commandGroup)
commandGroup - the command group, must not be null
AbstractButton createToolBarButton(ExecCommand command)
command - the executable command, must not be null
AbstractButton createToolBarButton(ToolCommand command)
command - the tool command, must not be null
AbstractButton createToolBarButton(CommandGroup commandGroup)
commandGroup - the command group, must not be null
JPopupMenu addContextDependentMenuItems(String context,
JPopupMenu popup)
context - the context stringpopup - the popup menu, must not be null
setCommandManager(org.esa.beam.framework.ui.command.CommandManager)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||