public interface GUICommand
| Modifier and Type | Field and Description |
|---|---|
static GUICommand |
EMPTY
Separator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checked()
Tests if this command includes a menu checkbox.
|
void |
execute(GUI gui)
Executes the command.
|
java.lang.String |
help()
Returns the command help.
|
java.lang.String |
key()
Returns the command shortcut.
|
java.lang.String |
label()
Returns the command label.
|
void |
refresh(GUI gui,
javax.swing.AbstractButton button)
Enables or disables the specified button,
depending on the command properties.
|
static final GUICommand EMPTY
void execute(GUI gui)
gui - reference to the main windowvoid refresh(GUI gui, javax.swing.AbstractButton button)
gui - reference to the main windowbutton - button to be modifiedboolean checked()
java.lang.String label()
java.lang.String help()
java.lang.String key()