|
||||||||||
| 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.SelectableCommand
org.esa.beam.framework.ui.command.ExecCommand
public class ExecCommand
The ExecCommand is an ...
| Field Summary | |
|---|---|
static String |
TOGGLE_ACTION_KEY
|
| Fields inherited from class org.esa.beam.framework.ui.command.SelectableCommand |
|---|
SELECTED_ACTION_KEY |
| 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 | |
|---|---|
ExecCommand()
|
|
ExecCommand(String commandID)
|
|
ExecCommand(String commandID,
CommandListener listener)
|
|
| Method Summary | |
|---|---|
void |
addCommandListener(CommandListener l)
Adds a command listener. |
void |
configure(com.bc.ceres.core.runtime.ConfigurationElement config)
|
void |
configure(ResourceBundle resourceBundle)
Configures this command with the properties (if any) found in the given recource bundle. |
JMenuItem |
createMenuItem()
Creates a menu item (a JMenuItem or JCheckBoxMenuItem instance) for this command
group. |
AbstractButton |
createToolBarButton()
Creates an appropriate tool bar button for this command. |
void |
execute()
Executes this command. |
void |
execute(Object argument)
Executes this command with the given command-specific argument. |
protected void |
fireActionPerformed(ActionEvent actionEvent,
Object argument)
Notify all listeners that have registered interest for notification on the 'action performed' event type. |
boolean |
isToggle()
|
void |
removeCommandListener(CommandListener l)
Removes a command listener. |
void |
setToggle(boolean toggle)
|
| Methods inherited from class org.esa.beam.framework.ui.command.SelectableCommand |
|---|
actionPerformed, createAction, isSelected, setSelected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TOGGLE_ACTION_KEY
| Constructor Detail |
|---|
public ExecCommand()
public ExecCommand(String commandID)
public ExecCommand(String commandID,
CommandListener listener)
| Method Detail |
|---|
public boolean isToggle()
public void setToggle(boolean toggle)
public void execute()
public void execute(Object argument)
public JMenuItem createMenuItem()
JMenuItem or JCheckBoxMenuItem instance) for this command
group.
createMenuItem in class Commandpublic AbstractButton createToolBarButton()
createToolBarButton in class Commandpublic void addCommandListener(CommandListener l)
addCommandListener in class SelectableCommandl - the command listenerpublic void removeCommandListener(CommandListener l)
removeCommandListener in class SelectableCommandl - the command listener
protected void fireActionPerformed(ActionEvent actionEvent,
Object argument)
fireActionPerformed in class SelectableCommandpublic void configure(ResourceBundle resourceBundle)
command.command-ID.toggle = true or false
configure in class SelectableCommandresourceBundle - the resource bundle from which the properties are received
IllegalArgumentException - if the recource bundle is null
public void configure(com.bc.ceres.core.runtime.ConfigurationElement config)
throws com.bc.ceres.core.CoreException
configure in interface com.bc.ceres.core.runtime.ConfigurableExtensionconfigure in class SelectableCommandcom.bc.ceres.core.CoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||