Package org.basex.gui
Class GUIOptions
java.lang.Object
org.basex.util.options.Options
org.basex.gui.GUIOptions
This class contains options which are used in the GUI.
They are also stored in the project's home directory.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Nested Class Summary
Nested classes/interfaces inherited from class org.basex.util.options.Options
Options.YesNo, Options.YesNoOmit -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanOptionSort ascending.static final BooleanOptionAutomatically add characters.static final CommentComment: files.static final CommentComment: written to options file.static final CommentComment: written to options file.static final CommentComment: written to options file.static final CommentComment: written to options file.static final CommentComment: written to options file.static final CommentComment: written to options file.static final BooleanOptionCase sensitive sorting.static final NumberOptionBlue GUI color factor.static final NumberOptionGreen GUI color factor.static final NumberOptionRed GUI color factor.static final NumberOptionColumn.static final StringsOptionLast command inputs.static final StringOptionCurrent path to additional database input files.static final StringOptionName of new database.static final StringsOptionHistory of editor files.static final BooleanOptionFlag for realtime query execution.static final StringOptionDefault file filter.static final BooleanOptionFlag for realtime context filtering.static final StringOptionDefault GUI Font.static final NumberOptionFont size.static final NumberOptionFont TYPE = plain, bold, italics).static final NumbersOptionGUI position.static final NumbersOptionGUI height.static final NumberOptionIndentation.static final StringOptionCurrent path to database input.static final StringsOptionInput/output paths.static final NumberOptionLast insertion type.static final StringOptionFlag for Java look and feel.static final NumberOptionMap algorithm.static final BooleanOptionShow attributes in treemap.static final NumberOptionTreemap Offsets.static final NumberOptionnumber of children - size weight in (0;100).static final NumberOptionLine margin.static final BooleanOptionMark current line.static final NumberOptionMaximum number of items to be displayed.static final BooleanOptionFlag for maximized GUI window.static final NumberOptionMaximum number of bytes to be cached in textual result.static final BooleanOptionMerge duplicate lines.static final StringOptionDefault GUI Monospace Font.static final BooleanOptionFocus follows mouse.static final BooleanOptionOnly display monospace fonts.static final StringsOptionFiles opened in the editor.static final BooleanOptionParse project files.static final NumberOptionDot sizes in plot.static final BooleanOptionLogarithmic plot.static final BooleanOptionLogarithmic plot.static final NumberOptionPreferences tab.static final StringsOptionHistory of filtered project file contents.static final StringOptionCurrent path to database project.static final StringsOptionHistory of project directories.static final StringsOptionHistory of filtered project files.static final StringsOptionLast replaced strings.static final BooleanOptionSave before executing file.static final BooleanOptionFlag for scrolling editor tabs.static final StringsOptionLast keyword inputs.static final StringsOptionLast searched strings.static final NumberOptionCurrent input mode in global text field (Search, XQuery, Command).static final BooleanOptionFlag for displaying buttons in the GUI window.static final BooleanOptionFlag for activated xquery view.static final BooleanOptionFlag for activated query view.static final BooleanOptionFlag for activated tree view.static final BooleanOptionShow hidden files.static final BooleanOptionFlag for activated info view.static final BooleanOptionFlag for displaying the text field in the GUI window.static final BooleanOptionShow invisible characters.static final BooleanOptionShow line numbers.static final BooleanOptionFlag for activated map view.static final BooleanOptionShow line margin.static final BooleanOptionFlag for dissolving name attributes.static final BooleanOptionShow newlines.static final BooleanOptionFlag for activated plot view.static final BooleanOptionFlag for activated project structure.static final BooleanOptionFlag for displaying the status bar in the GUI window.static final BooleanOptionFlag for activated table view.static final BooleanOptionFlag for activated result view.static final BooleanOptionFlag for activated tree view.static final BooleanOptionInsert tabs as spaces.static final BooleanOptionShow attributes in treeview.static final BooleanOptionSlim rectangles to text length.static final BooleanOptionUnicode order.static final StringOptionLast updated version.static final StringOptionGUI layout.static final StringOptionCurrent path to current working directory.static final StringOptionXML suffixes.static final StringsOptionLast XQuery inputs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresults(long results, long bytes) Returns a string representation of the number of results.voidsetFile(StringOption option, IOFile file) Sets the string value of an option.voidsetFiles(StringsOption option, String[] paths) Sets the string array value of an option.String[]Returns the supported XML suffixes.Methods inherited from class org.basex.util.options.Options
allowed, assign, assign, assign, assign, assign, contains, error, free, get, get, get, get, get, get, get, get, get, invert, iterator, names, option, put, set, set, set, set, set, set, set, set, setSystem, toMap, toMap, toString, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
C_PATHS
Comment: written to options file. -
INPUTPATH
Current path to database input. -
DATAPATH
Current path to additional database input files. -
WORKPATH
Current path to current working directory. -
PROJECTPATH
Current path to database project. -
C_LAYOUT
Comment: written to options file. -
FONT
Default GUI Font. -
MONOFONT
Default GUI Monospace Font. -
FONTTYPE
Font TYPE = plain, bold, italics). -
FONTSIZE
Font size. -
ONLYMONO
Only display monospace fonts. -
COLORRED
Red GUI color factor. -
COLORGREEN
Green GUI color factor. -
COLORBLUE
Blue GUI color factor. -
C_WINDOWS
Comment: written to options file. -
UPDATEVERSION
Last updated version. -
VIEWS
GUI layout. -
GUISIZE
GUI height. -
GUILOC
GUI position. -
MAXSTATE
Flag for maximized GUI window. -
SHOWBUTTONS
Flag for displaying buttons in the GUI window. -
SHOWINPUT
Flag for displaying the text field in the GUI window. -
SHOWSTATUS
Flag for displaying the status bar in the GUI window. -
SHOWINFO
Flag for activated info view. -
SHOWMAP
Flag for activated map view. -
SHOWTABLE
Flag for activated table view. -
SHOWTEXT
Flag for activated result view. -
SHOWFOLDER
Flag for activated tree view. -
SHOWEXPLORE
Flag for activated query view. -
SHOWPLOT
Flag for activated plot view. -
SHOWEDITOR
Flag for activated xquery view. -
SHOWTREE
Flag for activated tree view. -
SHOWPROJECT
Flag for activated project structure. -
PREFTAB
Preferences tab. -
LOOKANDFEEL
Flag for Java look and feel. -
SHOWNAME
Flag for dissolving name attributes. -
SCROLLTABS
Flag for scrolling editor tabs. -
MOUSEFOCUS
Focus follows mouse. -
XMLSUFFIXES
XML suffixes. -
ASCSORT
Sort ascending. -
CASESORT
Case sensitive sorting. -
MERGEDUPL
Merge duplicate lines. -
COLUMN
Column. -
UNICODE
Unicode order. -
SHOWMARGIN
Show line margin. -
MARGIN
Line margin. -
TABSPACES
Insert tabs as spaces. -
INDENT
Indentation. -
SHOWINVISIBLE
Show invisible characters. -
SHOWNL
Show newlines. -
SHOWLINES
Show line numbers. -
MARKLINE
Mark current line. -
SAVERUN
Save before executing file. -
PARSEPROJ
Parse project files. -
AUTO
Automatically add characters. -
FILES
Default file filter. -
SHOWHIDDEN
Show hidden files. -
SEARCHMODE
Current input mode in global text field (Search, XQuery, Command). -
FILTERRT
Flag for realtime context filtering. -
EXECRT
Flag for realtime query execution. -
DBNAME
Name of new database. -
LASTINSERT
Last insertion type. -
C_VISUALIZATIONS
Comment: written to options file. -
MAPATTS
Show attributes in treemap. -
MAPOFFSETS
Treemap Offsets. -
MAPALGO
Map algorithm. -
MAPWEIGHT
number of children - size weight in (0;100). -
TREESLIMS
Slim rectangles to text length. -
TREEATTS
Show attributes in treeview. -
PLOTDOTS
Dot sizes in plot. -
PLOTXLOG
Logarithmic plot. -
PLOTYLOG
Logarithmic plot. -
MAXTEXT
Maximum number of bytes to be cached in textual result. -
MAXRESULTS
Maximum number of items to be displayed. -
C_SEARCH
Comment: written to options file. -
SEARCHED
Last searched strings. -
REPLACED
Last replaced strings. -
C_HISTORY
Comment: written to options file. -
COMMANDS
Last command inputs. -
SEARCH
Last keyword inputs. -
XQUERY
Last XQuery inputs. -
C_FILES
Comment: files. -
EDITOR
History of editor files. -
INPUTS
Input/output paths. -
OPEN
Files opened in the editor. -
PROJECTS
History of project directories. -
PROJFILES
History of filtered project files. -
PROJCONTS
History of filtered project file contents.
-
-
Constructor Details
-
GUIOptions
public GUIOptions()Constructor.
-
-
Method Details
-
setFiles
Sets the string array value of an option. Duplicates and orphaned files will be removed.- Parameters:
option- option to be setpaths- file paths to be assigned
-
setFile
Sets the string value of an option. The file path will be normalized.- Parameters:
option- option to be setfile- file to be assigned
-
xmlSuffixes
Returns the supported XML suffixes.- Returns:
- XML suffixes
-
results
Returns a string representation of the number of results.- Parameters:
results- number of resultsbytes- number of bytes (ignored if smaller than1)- Returns:
- result string
-