Package org.basex.gui
Enum Class GUIMenuCmd
- All Implemented Interfaces:
Serializable,Comparable<GUIMenuCmd>,java.lang.constant.Constable,GUICommand
This enumeration encapsulates all commands that are triggered by GUI operations.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionShows the "about" information.Jump to matching bracket.Closes the database.Color schema.Adds or removes a comment.Opens the community web page.Copies the currently marked nodes.Copies the current database path to the clipboard.Opens a dialog to create a new database.Deletes the currently marked nodes.Opens a dialog to edit the currently marked nodes.Closes the current editor file.Closes all editor files.Creates a new file in the editor.Opens a new file in the editor.Reverts the current editor file.Saves the current file in the editor.Saves the current editor file under a new name.Exits the application.Exports a database.Finds files.Filters the currently marked nodes.Changes the fonts.Formats text in the editor.Fullscreen mode.Goes one step back.Goes one step forward.Goes to the root node.Goes one level up.Shows the documentation web page.Displays the root node in the text view.Shows database info.Inserts new nodes.Jumps to the currently edited file.Lower case.Jumps to the next error.Opens a dialog to manage databases.Repository manager.Pastes the copied nodes.Shows a preference dialog.Realtime execution on/off.Realtime filtering on/off.Shows the buttons.Shows the XQuery view.Shows the explorer view.Shows the tree view.Shows info.Show Input Field.Shows the map.Shows used memory.Shows the plot view.Shows the XQuery project structure.Shows the text view.Shows the status bar.Shows the table view.Shows the tree view.Sorts text.Title case.Opens the update web page.Upper case.Edits external variables. -
Field Summary
Fields inherited from interface org.basex.gui.GUICommand
SEPARATOR -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the command is currently enabled.final Stringlabel()Returns the command label.booleanChecks if the command is currently selected.shortCut()Returns a shortcut.Returns the command shortcuts.final booleantoggle()Indicates if this is a command that can be turned on and off.static GUIMenuCmdReturns the enum constant of this class with the specified name.static GUIMenuCmd[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.basex.gui.GUICommand
execute
-
Enum Constant Details
-
C_CREATE
Opens a dialog to create a new database. -
C_OPEN_MANAGE
Opens a dialog to manage databases. -
C_INFO
Shows database info. -
C_EXPORT
Exports a database. -
C_CLOSE
Closes the database. -
C_EDITNEW
Creates a new file in the editor. -
C_EDITOPEN
Opens a new file in the editor. -
C_EDITREOPEN
Reverts the current editor file. -
C_EDITSAVE
Saves the current file in the editor. -
C_EDITSAVEAS
Saves the current editor file under a new name. -
C_EDITCLOSE
Closes the current editor file. -
C_EDITCLOSEALL
Closes all editor files. -
C_VARS
Edits external variables. -
C_NEXTERROR
Jumps to the next error. -
C_COMMENT
Adds or removes a comment. -
C_FORMAT
Formats text in the editor. -
C_SORT
Sorts text. -
C_LOWERCASE
Lower case. -
C_UPPERCASE
Upper case. -
C_TITLECASE
Title case. -
C_BRACKET
Jump to matching bracket. -
C_EXIT
Exits the application. -
C_COPYPATH
Copies the current database path to the clipboard. -
C_COPY
Copies the currently marked nodes. -
C_PASTE
Pastes the copied nodes. -
C_DELETE
Deletes the currently marked nodes. -
C_INSERT
Inserts new nodes. -
C_EDIT
Opens a dialog to edit the currently marked nodes. -
C_FILTER
Filters the currently marked nodes. -
C_SHOWEDITOR
Shows the XQuery view. -
C_JUMPFILE
Jumps to the currently edited file. -
C_FILESEARCH
Finds files. -
C_SHOWPROJECT
Shows the XQuery project structure. -
C_SHOWINFO
Shows info. -
C_PACKAGES
Repository manager. -
C_SHOWBUTTONS
Shows the buttons. -
C_SHOWINPUT
Show Input Field. -
C_SHOWSTATUS
Shows the status bar. -
C_SHOWRESULT
Shows the text view. -
C_SHOWMAP
Shows the map. -
C_SHOWTREE
Shows the tree view. -
C_SHOWFOLDER
Shows the tree view. -
C_SHOWPLOT
Shows the plot view. -
C_SHOWTABLE
Shows the table view. -
C_SHOWEXPLORE
Shows the explorer view. -
C_SHOWMEM
Shows used memory. -
C_FULL
Fullscreen mode. -
C_RTEXEC
Realtime execution on/off. -
C_RTFILTER
Realtime filtering on/off. -
C_COLOR
Color schema. -
C_FONTS
Changes the fonts. -
C_PREFS
Shows a preference dialog. -
C_HELP
Shows the documentation web page. -
C_COMMUNITY
Opens the community web page. -
C_UPDATES
Opens the update web page. -
C_ABOUT
Shows the "about" information. -
C_GOBACK
Goes one step back. -
C_GOFORWARD
Goes one step forward. -
C_GOUP
Goes one level up. -
C_GOHOME
Goes to the root node. -
C_HOME
Displays the root node in the text view.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
enabled
Description copied from interface:GUICommandChecks if the command is currently enabled.- Specified by:
enabledin interfaceGUICommand- Parameters:
gui- reference to the main window- Returns:
- result of check
-
selected
Description copied from interface:GUICommandChecks if the command is currently selected.- Specified by:
selectedin interfaceGUICommand- Parameters:
gui- reference to the main window- Returns:
- result of check
-
label
Description copied from interface:GUICommandReturns the command label.- Specified by:
labelin interfaceGUICommand- Returns:
- command label
-
toggle
public final boolean toggle()Description copied from interface:GUICommandIndicates if this is a command that can be turned on and off.- Specified by:
togglein interfaceGUICommand- Returns:
- result of check
-
shortCut
Description copied from interface:GUICommandReturns a shortcut.- Specified by:
shortCutin interfaceGUICommand- Returns:
- shortcut
-
shortcuts
Description copied from interface:GUICommandReturns the command shortcuts.- Specified by:
shortcutsin interfaceGUICommand- Returns:
- command shortcut
-