|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Command
Defines a command that may be executed by the user.
Field Summary |
---|
Fields inherited from interface dsto.dfc.swing.icons.Iconic |
---|
NULL_ICON |
Method Summary | |
---|---|
boolean |
canReplace(Command command)
True if this command can logically replace another. |
void |
execute()
Execute the command. |
KeyStroke |
getAccelerator()
Get a keyboard accelerator for the command. |
String |
getDescription()
A short description of the command, suitable for a tooltip or use in a status panel. |
String |
getDisplayName()
The name of the command as it should be displayed (eg on a menu). |
String |
getGroupInView(String viewName)
Get the preferred group that this command should appear in for a given view. |
String |
getLogString()
A string that is suitable to describe this command and its parameters for logging purposes. |
char |
getMnemonic()
Get a character shortcut for the command (eg for use on a menu). |
String |
getName()
The formal identifying name for this command (eg edit.Copy, file.Open). |
boolean |
isEnabled()
True if the command is enabled, ie able to execute in the current context. |
boolean |
isInteractive()
True if this command will interact with the user when execute() is called. |
Methods inherited from interface dsto.dfc.swing.icons.Iconic |
---|
getIcon, getLargeIcon |
Method Detail |
---|
void execute()
String getName()
getName
in interface Iconic
String getDisplayName()
String getDescription()
String getLogString()
boolean isEnabled()
boolean isInteractive()
String getGroupInView(String viewName)
If the command changes its group in any view it should generate a groupInView property change event with the old value set to the old group and the new value set to the new group.
viewName
- The name of the view.
boolean canReplace(Command command)
char getMnemonic()
KeyStroke getAccelerator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |