Package org.basex.gui

Enum Class GUIMenuCmd

java.lang.Object
java.lang.Enum<GUIMenuCmd>
org.basex.gui.GUIMenuCmd
All Implemented Interfaces:
Serializable, Comparable<GUIMenuCmd>, java.lang.constant.Constable, GUICommand

public enum GUIMenuCmd extends Enum<GUIMenuCmd> implements GUICommand
This enumeration encapsulates all commands that are triggered by GUI operations.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Enum Constant Details

    • C_CREATE

      public static final GUIMenuCmd C_CREATE
      Opens a dialog to create a new database.
    • C_OPEN_MANAGE

      public static final GUIMenuCmd C_OPEN_MANAGE
      Opens a dialog to manage databases.
    • C_INFO

      public static final GUIMenuCmd C_INFO
      Shows database info.
    • C_EXPORT

      public static final GUIMenuCmd C_EXPORT
      Exports a database.
    • C_CLOSE

      public static final GUIMenuCmd C_CLOSE
      Closes the database.
    • C_EDITNEW

      public static final GUIMenuCmd C_EDITNEW
      Creates a new file in the editor.
    • C_EDITOPEN

      public static final GUIMenuCmd C_EDITOPEN
      Opens a new file in the editor.
    • C_EDITREOPEN

      public static final GUIMenuCmd C_EDITREOPEN
      Reverts the current editor file.
    • C_EDITSAVE

      public static final GUIMenuCmd C_EDITSAVE
      Saves the current file in the editor.
    • C_EDITSAVEAS

      public static final GUIMenuCmd C_EDITSAVEAS
      Saves the current editor file under a new name.
    • C_EDITCLOSE

      public static final GUIMenuCmd C_EDITCLOSE
      Closes the current editor file.
    • C_EDITCLOSEALL

      public static final GUIMenuCmd C_EDITCLOSEALL
      Closes all editor files.
    • C_VARS

      public static final GUIMenuCmd C_VARS
      Edits external variables.
    • C_NEXTERROR

      public static final GUIMenuCmd C_NEXTERROR
      Jumps to the next error.
    • C_COMMENT

      public static final GUIMenuCmd C_COMMENT
      Adds or removes a comment.
    • C_FORMAT

      public static final GUIMenuCmd C_FORMAT
      Formats text in the editor.
    • C_SORT

      public static final GUIMenuCmd C_SORT
      Sorts text.
    • C_LOWERCASE

      public static final GUIMenuCmd C_LOWERCASE
      Lower case.
    • C_UPPERCASE

      public static final GUIMenuCmd C_UPPERCASE
      Upper case.
    • C_TITLECASE

      public static final GUIMenuCmd C_TITLECASE
      Title case.
    • C_BRACKET

      public static final GUIMenuCmd C_BRACKET
      Jump to matching bracket.
    • C_EXIT

      public static final GUIMenuCmd C_EXIT
      Exits the application.
    • C_COPYPATH

      public static final GUIMenuCmd C_COPYPATH
      Copies the current database path to the clipboard.
    • C_COPY

      public static final GUIMenuCmd C_COPY
      Copies the currently marked nodes.
    • C_PASTE

      public static final GUIMenuCmd C_PASTE
      Pastes the copied nodes.
    • C_DELETE

      public static final GUIMenuCmd C_DELETE
      Deletes the currently marked nodes.
    • C_INSERT

      public static final GUIMenuCmd C_INSERT
      Inserts new nodes.
    • C_EDIT

      public static final GUIMenuCmd C_EDIT
      Opens a dialog to edit the currently marked nodes.
    • C_FILTER

      public static final GUIMenuCmd C_FILTER
      Filters the currently marked nodes.
    • C_SHOWEDITOR

      public static final GUIMenuCmd C_SHOWEDITOR
      Shows the XQuery view.
    • C_JUMPFILE

      public static final GUIMenuCmd C_JUMPFILE
      Jumps to the currently edited file.
    • C_FILESEARCH

      public static final GUIMenuCmd C_FILESEARCH
      Finds files.
    • C_SHOWPROJECT

      public static final GUIMenuCmd C_SHOWPROJECT
      Shows the XQuery project structure.
    • C_SHOWINFO

      public static final GUIMenuCmd C_SHOWINFO
      Shows info.
    • C_PACKAGES

      public static final GUIMenuCmd C_PACKAGES
      Repository manager.
    • C_SHOWBUTTONS

      public static final GUIMenuCmd C_SHOWBUTTONS
      Shows the buttons.
    • C_SHOWINPUT

      public static final GUIMenuCmd C_SHOWINPUT
      Show Input Field.
    • C_SHOWSTATUS

      public static final GUIMenuCmd C_SHOWSTATUS
      Shows the status bar.
    • C_SHOWRESULT

      public static final GUIMenuCmd C_SHOWRESULT
      Shows the text view.
    • C_SHOWMAP

      public static final GUIMenuCmd C_SHOWMAP
      Shows the map.
    • C_SHOWTREE

      public static final GUIMenuCmd C_SHOWTREE
      Shows the tree view.
    • C_SHOWFOLDER

      public static final GUIMenuCmd C_SHOWFOLDER
      Shows the tree view.
    • C_SHOWPLOT

      public static final GUIMenuCmd C_SHOWPLOT
      Shows the plot view.
    • C_SHOWTABLE

      public static final GUIMenuCmd C_SHOWTABLE
      Shows the table view.
    • C_SHOWEXPLORE

      public static final GUIMenuCmd C_SHOWEXPLORE
      Shows the explorer view.
    • C_SHOWMEM

      public static final GUIMenuCmd C_SHOWMEM
      Shows used memory.
    • C_FULL

      public static final GUIMenuCmd C_FULL
      Fullscreen mode.
    • C_RTEXEC

      public static final GUIMenuCmd C_RTEXEC
      Realtime execution on/off.
    • C_RTFILTER

      public static final GUIMenuCmd C_RTFILTER
      Realtime filtering on/off.
    • C_COLOR

      public static final GUIMenuCmd C_COLOR
      Color schema.
    • C_FONTS

      public static final GUIMenuCmd C_FONTS
      Changes the fonts.
    • C_PREFS

      public static final GUIMenuCmd C_PREFS
      Shows a preference dialog.
    • C_HELP

      public static final GUIMenuCmd C_HELP
      Shows the documentation web page.
    • C_COMMUNITY

      public static final GUIMenuCmd C_COMMUNITY
      Opens the community web page.
    • C_UPDATES

      public static final GUIMenuCmd C_UPDATES
      Opens the update web page.
    • C_ABOUT

      public static final GUIMenuCmd C_ABOUT
      Shows the "about" information.
    • C_GOBACK

      public static final GUIMenuCmd C_GOBACK
      Goes one step back.
    • C_GOFORWARD

      public static final GUIMenuCmd C_GOFORWARD
      Goes one step forward.
    • C_GOUP

      public static final GUIMenuCmd C_GOUP
      Goes one level up.
    • C_GOHOME

      public static final GUIMenuCmd C_GOHOME
      Goes to the root node.
    • C_HOME

      public static final GUIMenuCmd C_HOME
      Displays the root node in the text view.
  • Method Details

    • values

      public static GUIMenuCmd[] 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

      public static GUIMenuCmd valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • enabled

      public boolean enabled(GUI gui)
      Description copied from interface: GUICommand
      Checks if the command is currently enabled.
      Specified by:
      enabled in interface GUICommand
      Parameters:
      gui - reference to the main window
      Returns:
      result of check
    • selected

      public boolean selected(GUI gui)
      Description copied from interface: GUICommand
      Checks if the command is currently selected.
      Specified by:
      selected in interface GUICommand
      Parameters:
      gui - reference to the main window
      Returns:
      result of check
    • label

      public final String label()
      Description copied from interface: GUICommand
      Returns the command label.
      Specified by:
      label in interface GUICommand
      Returns:
      command label
    • toggle

      public final boolean toggle()
      Description copied from interface: GUICommand
      Indicates if this is a command that can be turned on and off.
      Specified by:
      toggle in interface GUICommand
      Returns:
      result of check
    • shortCut

      public String shortCut()
      Description copied from interface: GUICommand
      Returns a shortcut.
      Specified by:
      shortCut in interface GUICommand
      Returns:
      shortcut
    • shortcuts

      public Object shortcuts()
      Description copied from interface: GUICommand
      Returns the command shortcuts.
      Specified by:
      shortcuts in interface GUICommand
      Returns:
      command shortcut