|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdsto.dfc.swing.commands.AbstractCommand
dsto.dfc.swing.commands.BasicAboutCommand
public class BasicAboutCommand
Show an about box. Subclasses should override createAboutDialog()
to create the about box.
| Field Summary | |
|---|---|
protected Component |
client
|
| Fields inherited from class dsto.dfc.swing.commands.AbstractCommand |
|---|
displayName, icon |
| Fields inherited from interface dsto.dfc.swing.icons.Iconic |
|---|
NULL_ICON |
| Constructor Summary | |
|---|---|
BasicAboutCommand(Component client)
|
|
| Method Summary | |
|---|---|
protected Dialog |
createAboutDialog()
Override this to create the about box dialog. |
void |
execute()
Execute the command. |
String |
getDescription()
A short description of the command, suitable for a tooltip or use in a status panel. |
String |
getGroupInView(String viewName)
Get the preferred group that this command should appear in for a given view. |
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 |
isInteractive()
True if this command will interact with the user when execute() is called. |
| Methods inherited from class dsto.dfc.swing.commands.AbstractCommand |
|---|
actionPerformed, canReplace, clone, getAccelerator, getDefaultDisplayName, getDisplayName, getIcon, getLargeIcon, getLogString, isEnabled, setDisplayName, setIcon |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Component client
| Constructor Detail |
|---|
public BasicAboutCommand(Component client)
| Method Detail |
|---|
public char getMnemonic()
Command
getMnemonic in interface CommandgetMnemonic in class AbstractCommandpublic void execute()
Command
execute in interface Commandexecute in class AbstractCommandprotected Dialog createAboutDialog()
public boolean isInteractive()
Command
isInteractive in interface CommandisInteractive in class AbstractCommandpublic String getGroupInView(String viewName)
CommandIf 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.
getGroupInView in interface CommandgetGroupInView in class AbstractCommandviewName - The name of the view.
public String getDescription()
Command
getDescription in interface CommandgetDescription in class AbstractCommandpublic String getName()
Command
getName in interface CommandgetName in interface IconicgetName in class AbstractCommand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||