org.esa.beam.framework.ui.command
Class CommandGroup

java.lang.Object
  extended by org.esa.beam.framework.ui.command.Command
      extended by org.esa.beam.framework.ui.command.CommandGroup
All Implemented Interfaces:
com.bc.ceres.core.runtime.ConfigurableExtension
Direct Known Subclasses:
ActionGroup

public class CommandGroup
extends Command

The CommandGroup is a group of commands represented by a menu item group.

Version:
$Revision$ $Date$
Author:
Norman Fomferra

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 org.esa.beam.framework.ui.command.Command
addEventListener, configure, configure, containsContext, containsLocation, containsProperty, containsPropertyValue, createResourceKey, fireUpdateState, getAccelerator, getAction, getCommandID, getCommandUIFactory, getConfigBoolean, getConfigIcon, getConfigString, getConfigStrings, getContexts, getEventListenerList, getHelpId, getLargeIcon, getLocations, getLongDescription, getMnemonic, getParent, getPlaceAfter, getPlaceBefore, getPopupText, getProperty, getProperty, getProperty, getProperty, getResourceBoolean, getResourceIcon, getResourceString, getResourceStringArray, getResourceStrings, getShortDescription, getSmallIcon, getSortChildren, getText, getValue, isEnabled, isPlaceAtContextTop, isSeparatorAfter, isSeparatorBefore, removeEventListener, setAccelerator, setCommandID, setCommandUIFactory, setContexts, setEnabled, setHelpId, setLargeIcon, setLocations, setLongDescription, setMnemonic, setParent, setPlaceAfter, setPlaceAtContextTop, setPlaceBefore, setPopupText, setProperty, setProperty, setSeparatorAfter, setSeparatorBefore, setShortDescription, setSmallIcon, setText, toString, updateComponentTreeUI, updateState, updateState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandGroup

public CommandGroup(String commandGroupID,
                    CommandStateListener listener)
Method Detail

createMenuItem

public JMenuItem createMenuItem()
Creates a menu item (a JMenu instance) for this command group.

Specified by:
createMenuItem in class Command

createToolBarButton

public AbstractButton createToolBarButton()
Creates an appropriate tool bar button for this command.

Specified by:
createToolBarButton in class Command

addCommandStateListener

public void addCommandStateListener(CommandStateListener l)
Adds a command listener.

Parameters:
l - the command listener

removeCommandStateListener

public void removeCommandStateListener(CommandStateListener l)
Removes a command listener.

Parameters:
l - the command listener

createAction

protected Action createAction()
Description copied from class: Command
Creates an appropriate action instance for this command.

Specified by:
createAction in class Command


Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.