|
||||||||||
| 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
public abstract class SelectableCommand
A command which also has a 'selected' state.
| Field Summary | |
|---|---|
static String |
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 | |
|---|---|
SelectableCommand()
|
|
SelectableCommand(String commandID)
|
|
SelectableCommand(String commandID,
CommandListener listener)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(CommandEvent event)
Invoked when a command action is performed. |
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. |
protected Action |
createAction()
Creates an appropriate action instance for this command. |
protected void |
fireActionPerformed(ActionEvent actionEvent,
Object argument)
Notify all listeners that have registered interest for notification on the 'action performed' event type. |
boolean |
isSelected()
|
void |
removeCommandListener(CommandListener l)
Removes a command listener. |
void |
setSelected(boolean selected)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String SELECTED_ACTION_KEY
| Constructor Detail |
|---|
public SelectableCommand()
public SelectableCommand(String commandID)
public SelectableCommand(String commandID,
CommandListener listener)
| Method Detail |
|---|
public boolean isSelected()
public void setSelected(boolean selected)
public void addCommandListener(CommandListener l)
l - the command listenerpublic void removeCommandListener(CommandListener l)
l - the command listener
protected void fireActionPerformed(ActionEvent actionEvent,
Object argument)
public void configure(ResourceBundle resourceBundle)
command.command-ID.selected = true or false
configure in class CommandresourceBundle - 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 Commandcom.bc.ceres.core.CoreExceptionpublic void actionPerformed(CommandEvent event)
event - the command eventprotected Action createAction()
Command
createAction in class Command
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||