|
||||||||||
| 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.ToolCommand
org.esa.beam.visat.actions.ToolAction
public class ToolAction
Tool actions are used to interact with a FigureEditor,
such as the VISAT product scene view.
| Field Summary |
|---|
| 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 | |
|---|---|
ToolAction()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(CommandEvent event)
Invoked when a command action is performed. |
void |
configure(com.bc.ceres.core.runtime.ConfigurationElement config)
|
void |
updateState(CommandEvent event)
Called when a command should update its state. |
| Methods inherited from class org.esa.beam.framework.ui.command.ToolCommand |
|---|
addCommandStateListener, createAction, createMenuItem, createToolBarButton, getInteractor, removeCommandStateListener, setInteractor |
| Methods inherited from class org.esa.beam.framework.ui.command.SelectableCommand |
|---|
addCommandListener, configure, fireActionPerformed, isSelected, removeCommandListener, setSelected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ToolAction()
| Method Detail |
|---|
public void updateState(CommandEvent event)
CommandThis method can contain some code which analyzes the underlying element and makes a decision whether this item or group should be made visible/invisible or enabled/disabled etc.
updateState in class Commandevent - the command eventpublic void actionPerformed(CommandEvent event)
SelectableCommand
actionPerformed in class SelectableCommandevent - the command event
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 | |||||||||