public abstract class GUIPopupCmd extends Object implements GUICommand
SEPARATOR
Modifier | Constructor and Description |
---|---|
protected |
GUIPopupCmd(String label,
BaseXKeys... shortcut)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
enabled(GUI main)
Checks if the command is currently enabled.
|
abstract void |
execute()
Executes the popup command.
|
void |
execute(GUI main)
Executes the command.
|
String |
label()
Returns the command label.
|
boolean |
selected(GUI main)
Checks if the command is currently selected.
|
String |
shortCut()
Returns a shortcut.
|
BaseXKeys[] |
shortcuts()
Returns the command shortcuts.
|
boolean |
toggle()
Indicates if this is a command that can be turned on and off.
|
public abstract void execute()
public final void execute(GUI main)
GUICommand
execute
in interface GUICommand
main
- reference to the main windowpublic final boolean toggle()
GUICommand
toggle
in interface GUICommand
public final String label()
GUICommand
label
in interface GUICommand
public final String shortCut()
GUICommand
shortCut
in interface GUICommand
public final BaseXKeys[] shortcuts()
GUICommand
shortcuts
in interface GUICommand
public boolean enabled(GUI main)
GUICommand
enabled
in interface GUICommand
main
- reference to the main windowpublic boolean selected(GUI main)
GUICommand
selected
in interface GUICommand
main
- reference to the main windowCopyright © 2005–2015 BaseX Team. All rights reserved.