|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.ui.command.Command
org.esa.beam.framework.ui.command.CommandGroup
public class CommandGroup
The CommandGroup is a group of commands represented by a menu item group.
| Field Summary |
|---|
| Fields inherited from class org.esa.beam.framework.ui.command.Command |
|---|
ACTION_KEY_CONTEXT, ACTION_KEY_LARGE_ICON, ACTION_KEY_LOCATION, ACTION_KEY_PARENT, ACTION_KEY_PLACE_AFTER, ACTION_KEY_PLACE_BEFORE, ACTION_KEY_PLACE_CONTEXT_TOP, ACTION_KEY_POPUP_TEXT, ACTION_KEY_SEPARATOR_AFTER, ACTION_KEY_SEPARATOR_BEFORE, ACTION_KEY_SORT_CHILDREN, HELP_ID_KEY |
| Constructor Summary | |
|---|---|
CommandGroup(String commandGroupID,
CommandStateListener listener)
|
|
| Method Summary | |
|---|---|
void |
addCommandStateListener(CommandStateListener l)
Adds a command listener. |
protected Action |
createAction()
Creates an appropriate action instance for this command. |
JMenuItem |
createMenuItem()
Creates a menu item (a JMenu instance) for this command group. |
AbstractButton |
createToolBarButton()
Creates an appropriate tool bar button for this command. |
void |
removeCommandStateListener(CommandStateListener l)
Removes a command listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CommandGroup(String commandGroupID,
CommandStateListener listener)
| Method Detail |
|---|
public JMenuItem createMenuItem()
JMenu instance) for this command group.
createMenuItem in class Commandpublic AbstractButton createToolBarButton()
createToolBarButton in class Commandpublic void addCommandStateListener(CommandStateListener l)
l - the command listenerpublic void removeCommandStateListener(CommandStateListener l)
l - the command listenerprotected Action createAction()
Command
createAction in class Command
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||