|
||||||||||
| 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. |
|
DELETE
Deletes the currently marked nodes. |
|
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. |
|
GOUP
Goes one level up. |
|
HOME
Displays the root node in the text view. |
|
IMPORTFS
Opens a dialog to import the filesystem. |
|
INFO
Shows database info. |
|
INSERT
Inserts new nodes. |
|
MAPLAYOUT
Map layout. |
|
OPEN
Opens a dialog to open a database. |
|
PASTE
Pastes the copied nodes. |
|
PREFS
Shows a preference dialog. |
|
ROOT
Goes to the root node. |
|
RTEXEC
Realtime filtering on/off. |
|
RTFILTER
Realtime filtering on/off. |
|
SAVE
Saves the result text. |
|
SHOWBUTTONS
Shows the buttons. |
|
SHOWEXPLORER
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. |
|
| Method Summary | |
|---|---|
boolean |
checked()
Returns if this command includes a menu checkbox. |
java.lang.String |
desc()
Returns the command entry. |
abstract void |
execute(GUI gui)
Executes the command. |
java.lang.String |
help()
Returns the command help. |
java.lang.String |
key()
Returns the command shortcut. |
void |
refresh(GUI gui,
javax.swing.AbstractButton button)
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(java.lang.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 |
| Enum Constant Detail |
|---|
public static final GUICommands CREATE
public static final GUICommands OPEN
public static final GUICommands DROP
public static final GUICommands CLOSE
public static final GUICommands XQOPEN
public static final GUICommands XQSAVE
public static final GUICommands IMPORTFS
public static final GUICommands EXPORT
public static final GUICommands SAVE
public static final GUICommands EXIT
public static final GUICommands COPY
public static final GUICommands COPYPATH
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 SHOWEXPLORER
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 SHOWHELP
public static final GUICommands INFO
public static final GUICommands ABOUT
public static final GUICommands GOBACK
public static final GUICommands GOFORWARD
public static final GUICommands GOUP
public static final GUICommands ROOT
public static final GUICommands HOME
| Method Detail |
|---|
public static GUICommands[] values()
for (GUICommands c : GUICommands.values()) System.out.println(c);
public static GUICommands valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic abstract void execute(GUI gui)
GUICommand
execute in interface GUICommandgui - reference to the main window
public void refresh(GUI gui,
javax.swing.AbstractButton button)
GUICommand
refresh in interface GUICommandgui - reference to the main windowbutton - button to be modifiedpublic boolean checked()
GUICommand
checked in interface GUICommandpublic java.lang.String help()
GUICommand
help in interface GUICommandpublic java.lang.String desc()
GUICommand
desc in interface GUICommandpublic java.lang.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 | |||||||||