|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<GUICommands>
org.basex.gui.GUICommands
public enum GUICommands
This enumeration encapsulates all commands that are triggered by GUI operations.
Enum Constant Summary | |
---|---|
ABOUT
Shows the "about" information. |
|
CLOSE
Closes the database. |
|
COLOR
Color schema. |
|
COPY
Copies the currently marked nodes. |
|
COPYPATH
Copies the current path. |
|
CREATE
Opens a dialog to create a new database. |
|
CREATEFS
Opens a dialog to import given directory as DeepFS instance. |
|
DELETE
Deletes the currently marked nodes. |
|
DQE
Opens a dialog to use DeepFS instance as Desktop Query Engine. |
|
DROP
Opens a dialog to drop databases. |
|
EDIT
Opens a dialog to edit the currently marked nodes. |
|
EXIT
Exits the application. |
|
EXPORT
Exports a document. |
|
FILTER
Filters the currently marked nodes. |
|
FONTS
Changes the fonts. |
|
FULL
Fullscreen mode. |
|
GOBACK
Goes one step back. |
|
GOFORWARD
Goes one step forward. |
|
GOHOME
Goes to the root node. |
|
GOUP
Goes one level up. |
|
HOME
Displays the root node in the text view. |
|
INFO
Shows database info. |
|
INSERT
Inserts new nodes. |
|
MAPLAYOUT
Map layout. |
|
MOUNTFS
Opens a dialog to mount DeepFS instance as Filesystem in USErspace. |
|
OPEN
Opens a dialog to open a database. |
|
PASTE
Pastes the copied nodes. |
|
PREFS
Shows a preference dialog. |
|
RTEXEC
Realtime execution on/off. |
|
RTFILTER
Realtime filtering on/off. |
|
SERVER
Server Dialog. |
|
SHOWBUTTONS
Shows the buttons. |
|
SHOWEXPLORE
Shows the explorer view. |
|
SHOWFOLDER
Shows the tree view. |
|
SHOWHELP
Shows the help window. |
|
SHOWINFO
Shows info. |
|
SHOWINPUT
Show Input Field. |
|
SHOWMAP
Shows the map. |
|
SHOWMENU
Shows the menu. |
|
SHOWPLOT
Shows the plot view. |
|
SHOWSTATUS
Shows the status bar. |
|
SHOWTABLE
Shows the table view. |
|
SHOWTEXT
Shows the text view. |
|
SHOWXQUERY
Shows the XQuery view. |
|
XQOPEN
Opens an XQuery file. |
|
XQSAVE
Saves the current XQuery. |
|
XQSAVEAS
Saves the current XQuery. |
Method Summary | |
---|---|
boolean |
checked()
Returns if this command includes a menu checkbox. |
String |
desc()
Returns the command entry. |
String |
help()
Returns the command help. |
String |
key()
Returns the command shortcut. |
void |
refresh(GUI gui,
AbstractButton b)
Enables or disables the specified button, depending on the command properties. |
static IO |
save(GUI gui,
boolean single)
Displays a file save dialog and returns the file name or a null reference. |
static GUICommands |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static GUICommands[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.basex.gui.GUICommand |
---|
execute |
Enum Constant Detail |
---|
public static final GUICommands CREATE
public static final GUICommands OPEN
public static final GUICommands INFO
public static final GUICommands EXPORT
public static final GUICommands DROP
public static final GUICommands CLOSE
public static final GUICommands SERVER
public static final GUICommands XQOPEN
public static final GUICommands XQSAVE
public static final GUICommands XQSAVEAS
public static final GUICommands EXIT
public static final GUICommands COPYPATH
public static final GUICommands COPY
public static final GUICommands PASTE
public static final GUICommands DELETE
public static final GUICommands INSERT
public static final GUICommands EDIT
public static final GUICommands FILTER
public static final GUICommands SHOWXQUERY
public static final GUICommands SHOWINFO
public static final GUICommands SHOWMENU
public static final GUICommands SHOWBUTTONS
public static final GUICommands SHOWINPUT
public static final GUICommands SHOWSTATUS
public static final GUICommands SHOWTEXT
public static final GUICommands SHOWMAP
public static final GUICommands SHOWFOLDER
public static final GUICommands SHOWTABLE
public static final GUICommands SHOWPLOT
public static final GUICommands SHOWEXPLORE
public static final GUICommands FULL
public static final GUICommands RTEXEC
public static final GUICommands RTFILTER
public static final GUICommands COLOR
public static final GUICommands FONTS
public static final GUICommands MAPLAYOUT
public static final GUICommands PREFS
public static final GUICommands CREATEFS
public static final GUICommands DQE
public static final GUICommands MOUNTFS
public static final GUICommands SHOWHELP
public static final GUICommands ABOUT
public static final GUICommands GOBACK
public static final GUICommands GOFORWARD
public static final GUICommands GOUP
public static final GUICommands GOHOME
public static final GUICommands HOME
Method Detail |
---|
public static GUICommands[] values()
for (GUICommands c : GUICommands.values()) System.out.println(c);
public static GUICommands valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic void refresh(GUI gui, AbstractButton b)
GUICommand
refresh
in interface GUICommand
gui
- reference to the main windowb
- button to be modifiedpublic final boolean checked()
GUICommand
checked
in interface GUICommand
public String help()
GUICommand
help
in interface GUICommand
public String desc()
GUICommand
desc
in interface GUICommand
public String key()
GUICommand
key
in interface GUICommand
public static IO save(GUI gui, boolean single)
gui
- gui referencesingle
- file vs directory dialog
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |