Package org.basex.gui
Interface GUICommand
- All Known Implementing Classes:
GUIMenuCmd,GUIPopupCmd
public interface GUICommand
This interface defines GUI command methods.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the command is currently enabled.voidExecutes the command.label()Returns the command label.booleanChecks if the command is currently selected.shortCut()Returns a shortcut.Returns the command shortcuts.booleantoggle()Indicates if this is a command that can be turned on and off.
-
Field Details
-
SEPARATOR
Separator.
-
-
Method Details
-
execute
Executes the command.- Parameters:
gui- reference to the main window
-
enabled
Checks if the command is currently enabled.- Parameters:
gui- reference to the main window- Returns:
- result of check
-
selected
Checks if the command is currently selected.- Parameters:
gui- reference to the main window- Returns:
- result of check
-
toggle
boolean toggle()Indicates if this is a command that can be turned on and off.- Returns:
- result of check
-
label
String label()Returns the command label.- Returns:
- command label
-
shortCut
String shortCut()Returns a shortcut.- Returns:
- shortcut
-
shortcuts
Object shortcuts()Returns the command shortcuts.- Returns:
- command shortcut
-