public interface GUICommand
Modifier and Type | Field and Description |
---|---|
static GUICommand |
SEPARATOR
Separator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
enabled(GUI gui)
Checks if the command is currently enabled.
|
void |
execute(GUI gui)
Executes the command.
|
String |
label()
Returns the command label.
|
boolean |
selected(GUI gui)
Checks if the command is currently selected.
|
String |
shortCut()
Returns a shortcut.
|
Object |
shortcuts()
Returns the command shortcuts.
|
boolean |
toggle()
Indicates if this is a command that can be turned on and off.
|
static final GUICommand SEPARATOR
void execute(GUI gui)
gui
- reference to the main windowboolean enabled(GUI gui)
gui
- reference to the main windowboolean selected(GUI gui)
gui
- reference to the main windowboolean toggle()
String label()
String shortCut()
Object shortcuts()
Copyright © 2005–2015 BaseX Team. All rights reserved.