Package org.basex.gui
Class GUIOptions
- java.lang.Object
-
- org.basex.util.options.Options
-
- org.basex.gui.GUIOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.basex.util.options.Options
Options.YesNo, Options.YesNoOmit
-
-
Field Summary
Fields Modifier and Type Field Description static StringOption
ANTIALIAS
Anti-aliasing type.static BooleanOption
ASCSORT
Sort ascending.static BooleanOption
AUTO
Automatically add characters.static Comment
C_FILES
Comment: files.static Comment
C_HISTORY
Comment: written to the options file.static Comment
C_LAYOUT
Comment: written to the options file.static Comment
C_PATHS
Comment: written to the options file.static Comment
C_SEARCH
Comment: written to the options file.static Comment
C_VERSION
Comment: written to the options file.static Comment
C_VISUALIZATIONS
Comment: written to the options file.static Comment
C_WINDOWS
Comment: written to the options file.static BooleanOption
CASESORT
Case-sensitive sorting.static BooleanOption
CHECKUPDATES
Check for updates.static NumberOption
COLORBLUE
Blue GUI color factor.static NumberOption
COLORGREEN
Green GUI color factor.static NumberOption
COLORRED
Red GUI color factor.static NumberOption
COLUMN
Column.static StringsOption
COMMANDS
Last command inputs.static StringOption
DATAPATH
Current path to additional database input files.static StringOption
DBNAME
Name of new database.static StringsOption
EDITOR
History of editor files.static BooleanOption
EXECRT
Flag for real-time query execution.static StringOption
FILES
Default file filter.static BooleanOption
FILTERRT
Flag for real-time context filtering.static StringOption
FONT
Default GUI Font.static NumberOption
FONTSIZE
Font size.static NumbersOption
GUILOC
GUI position.static NumbersOption
GUISIZE
GUI height.static NumberOption
INDENT
Indentation.static StringOption
INPUTPATH
Current path to database input.static StringsOption
INPUTS
Input/output paths.static StringOption
LABELS
Label attributes, separated by comma.static NumberOption
LASTINSERT
Last insertion type.static BooleanOption
LISTMONO
List monospace fonts.static StringOption
LOOKANDFEEL
Flag for Java look and feel.static NumberOption
MAPALGO
Map algorithm.static BooleanOption
MAPATTS
Show attributes in treemap.static NumberOption
MAPOFFSETS
Treemap Offsets.static NumberOption
MAPWEIGHT
number of children - size weight in (0;100).static NumberOption
MARGIN
Line margin.static BooleanOption
MARKLINE
Mark current line.static NumberOption
MAXRESULTS
Maximum number of items to be displayed.static BooleanOption
MAXSTATE
Flag for maximized GUI window.static NumberOption
MAXTEXT
Maximum number of bytes to be cached in textual result.static BooleanOption
MERGEDUPL
Merge duplicate lines.static StringOption
MONOFONT
Default GUI Monospace Font.static BooleanOption
MOUSEFOCUS
Focus follows mouse.static StringsOption
OPEN
Files opened in the editor.static BooleanOption
PARSEPROJ
Parse project files.static NumberOption
PLOTDOTS
Dot sizes in plot.static BooleanOption
PLOTXLOG
Logarithmic plot.static BooleanOption
PLOTYLOG
Logarithmic plot.static NumberOption
PREFTAB
Preferences tab.static StringsOption
PROJCONTS
History of filtered project file contents.static StringOption
PROJECTPATH
Current path to database project.static StringsOption
PROJECTS
History of project directories.static StringsOption
PROJFILES
History of filtered project files.static StringsOption
REPLACED
Last replaced strings.static BooleanOption
SAVERUN
Save before executing file.static BooleanOption
SCROLLTABS
Flag for scrolling editor tabs.static StringsOption
SEARCH
Last keyword inputs.static StringsOption
SEARCHED
Last searched strings.static NumberOption
SEARCHMODE
Current input mode in global text field (Search, XQuery, Command).static BooleanOption
SHOWBUTTONS
Flag for displaying buttons in the GUI window.static BooleanOption
SHOWEDITOR
Flag for activated xquery view.static BooleanOption
SHOWEXPLORE
Flag for activated query view.static BooleanOption
SHOWFOLDER
Flag for activated tree view.static BooleanOption
SHOWHIDDEN
Show hidden files.static BooleanOption
SHOWINFO
Flag for activated info view.static BooleanOption
SHOWINPUT
Flag for displaying the text field in the GUI window.static BooleanOption
SHOWINVISIBLE
Show invisible characters.static BooleanOption
SHOWLINES
Show line numbers.static BooleanOption
SHOWMAP
Flag for activated map view.static BooleanOption
SHOWMARGIN
Show line margin.static BooleanOption
SHOWNL
Show newlines.static BooleanOption
SHOWPLOT
Flag for activated plot view.static BooleanOption
SHOWPROJECT
Flag for activated project structure.static BooleanOption
SHOWSTATUS
Flag for displaying the status bar in the GUI window.static BooleanOption
SHOWTABLE
Flag for activated table view.static BooleanOption
SHOWTEXT
Flag for activated result view.static BooleanOption
SHOWTREE
Flag for activated tree view.static BooleanOption
TABSPACES
Insert tabs as spaces.static BooleanOption
TREEATTS
Show attributes in treeview.static BooleanOption
TREESLIMS
Slim rectangles to text length.static BooleanOption
UNICODE
Unicode order.static StringOption
UPDATEVERSION
Latest released version.static StringOption
VIEWS
GUI layout.static StringOption
WORKPATH
Current path to current working directory.static StringOption
XMLSUFFIXES
XML suffixes.static StringsOption
XQUERY
Last XQuery inputs.
-
Constructor Summary
Constructors Constructor Description GUIOptions()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setFile(StringOption option, IOFile file)
Sets the string value of an option.void
setFiles(StringsOption option, String[] paths)
Sets the string array value of an option.String[]
xmlSuffixes()
Returns the supported XML suffixes.-
Methods inherited from class org.basex.util.options.Options
allowed, assign, assign, assign, assign, assign, assign, contains, free, get, get, get, get, get, get, get, get, get, get, invert, iterator, names, option, put, set, set, set, set, set, set, set, set, setSystem, similar, similar, toMap, toMap, toString, write
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
C_VERSION
public static final Comment C_VERSION
Comment: written to the options file.
-
UPDATEVERSION
public static final StringOption UPDATEVERSION
Latest released version.
-
CHECKUPDATES
public static final BooleanOption CHECKUPDATES
Check for updates.
-
C_PATHS
public static final Comment C_PATHS
Comment: written to the options file.
-
INPUTPATH
public static final StringOption INPUTPATH
Current path to database input.
-
DATAPATH
public static final StringOption DATAPATH
Current path to additional database input files.
-
WORKPATH
public static final StringOption WORKPATH
Current path to current working directory.
-
PROJECTPATH
public static final StringOption PROJECTPATH
Current path to database project.
-
C_LAYOUT
public static final Comment C_LAYOUT
Comment: written to the options file.
-
FONT
public static final StringOption FONT
Default GUI Font.
-
MONOFONT
public static final StringOption MONOFONT
Default GUI Monospace Font.
-
FONTSIZE
public static final NumberOption FONTSIZE
Font size.
-
LISTMONO
public static final BooleanOption LISTMONO
List monospace fonts.
-
ANTIALIAS
public static final StringOption ANTIALIAS
Anti-aliasing type.
-
COLORRED
public static final NumberOption COLORRED
Red GUI color factor.
-
COLORGREEN
public static final NumberOption COLORGREEN
Green GUI color factor.
-
COLORBLUE
public static final NumberOption COLORBLUE
Blue GUI color factor.
-
C_WINDOWS
public static final Comment C_WINDOWS
Comment: written to the options file.
-
VIEWS
public static final StringOption VIEWS
GUI layout.
-
GUISIZE
public static final NumbersOption GUISIZE
GUI height.
-
GUILOC
public static final NumbersOption GUILOC
GUI position.
-
MAXSTATE
public static final BooleanOption MAXSTATE
Flag for maximized GUI window.
-
SHOWBUTTONS
public static final BooleanOption SHOWBUTTONS
Flag for displaying buttons in the GUI window.
-
SHOWINPUT
public static final BooleanOption SHOWINPUT
Flag for displaying the text field in the GUI window.
-
SHOWSTATUS
public static final BooleanOption SHOWSTATUS
Flag for displaying the status bar in the GUI window.
-
SHOWINFO
public static final BooleanOption SHOWINFO
Flag for activated info view.
-
SHOWMAP
public static final BooleanOption SHOWMAP
Flag for activated map view.
-
SHOWTABLE
public static final BooleanOption SHOWTABLE
Flag for activated table view.
-
SHOWTEXT
public static final BooleanOption SHOWTEXT
Flag for activated result view.
-
SHOWFOLDER
public static final BooleanOption SHOWFOLDER
Flag for activated tree view.
-
SHOWEXPLORE
public static final BooleanOption SHOWEXPLORE
Flag for activated query view.
-
SHOWPLOT
public static final BooleanOption SHOWPLOT
Flag for activated plot view.
-
SHOWEDITOR
public static final BooleanOption SHOWEDITOR
Flag for activated xquery view.
-
SHOWTREE
public static final BooleanOption SHOWTREE
Flag for activated tree view.
-
SHOWPROJECT
public static final BooleanOption SHOWPROJECT
Flag for activated project structure.
-
PREFTAB
public static final NumberOption PREFTAB
Preferences tab.
-
LOOKANDFEEL
public static final StringOption LOOKANDFEEL
Flag for Java look and feel.
-
LABELS
public static final StringOption LABELS
Label attributes, separated by comma.
-
SCROLLTABS
public static final BooleanOption SCROLLTABS
Flag for scrolling editor tabs.
-
MOUSEFOCUS
public static final BooleanOption MOUSEFOCUS
Focus follows mouse.
-
XMLSUFFIXES
public static final StringOption XMLSUFFIXES
XML suffixes.
-
ASCSORT
public static final BooleanOption ASCSORT
Sort ascending.
-
CASESORT
public static final BooleanOption CASESORT
Case-sensitive sorting.
-
MERGEDUPL
public static final BooleanOption MERGEDUPL
Merge duplicate lines.
-
COLUMN
public static final NumberOption COLUMN
Column.
-
UNICODE
public static final BooleanOption UNICODE
Unicode order.
-
SHOWMARGIN
public static final BooleanOption SHOWMARGIN
Show line margin.
-
MARGIN
public static final NumberOption MARGIN
Line margin.
-
TABSPACES
public static final BooleanOption TABSPACES
Insert tabs as spaces.
-
INDENT
public static final NumberOption INDENT
Indentation.
-
SHOWINVISIBLE
public static final BooleanOption SHOWINVISIBLE
Show invisible characters.
-
SHOWNL
public static final BooleanOption SHOWNL
Show newlines.
-
SHOWLINES
public static final BooleanOption SHOWLINES
Show line numbers.
-
MARKLINE
public static final BooleanOption MARKLINE
Mark current line.
-
SAVERUN
public static final BooleanOption SAVERUN
Save before executing file.
-
PARSEPROJ
public static final BooleanOption PARSEPROJ
Parse project files.
-
AUTO
public static final BooleanOption AUTO
Automatically add characters.
-
FILES
public static final StringOption FILES
Default file filter.
-
SHOWHIDDEN
public static final BooleanOption SHOWHIDDEN
Show hidden files.
-
SEARCHMODE
public static final NumberOption SEARCHMODE
Current input mode in global text field (Search, XQuery, Command).
-
FILTERRT
public static final BooleanOption FILTERRT
Flag for real-time context filtering.
-
EXECRT
public static final BooleanOption EXECRT
Flag for real-time query execution.
-
DBNAME
public static final StringOption DBNAME
Name of new database.
-
LASTINSERT
public static final NumberOption LASTINSERT
Last insertion type.
-
C_VISUALIZATIONS
public static final Comment C_VISUALIZATIONS
Comment: written to the options file.
-
MAPATTS
public static final BooleanOption MAPATTS
Show attributes in treemap.
-
MAPOFFSETS
public static final NumberOption MAPOFFSETS
Treemap Offsets.
-
MAPALGO
public static final NumberOption MAPALGO
Map algorithm.
-
MAPWEIGHT
public static final NumberOption MAPWEIGHT
number of children - size weight in (0;100).
-
TREESLIMS
public static final BooleanOption TREESLIMS
Slim rectangles to text length.
-
TREEATTS
public static final BooleanOption TREEATTS
Show attributes in treeview.
-
PLOTDOTS
public static final NumberOption PLOTDOTS
Dot sizes in plot.
-
PLOTXLOG
public static final BooleanOption PLOTXLOG
Logarithmic plot.
-
PLOTYLOG
public static final BooleanOption PLOTYLOG
Logarithmic plot.
-
MAXTEXT
public static final NumberOption MAXTEXT
Maximum number of bytes to be cached in textual result.
-
MAXRESULTS
public static final NumberOption MAXRESULTS
Maximum number of items to be displayed.
-
C_SEARCH
public static final Comment C_SEARCH
Comment: written to the options file.
-
SEARCHED
public static final StringsOption SEARCHED
Last searched strings.
-
REPLACED
public static final StringsOption REPLACED
Last replaced strings.
-
C_HISTORY
public static final Comment C_HISTORY
Comment: written to the options file.
-
COMMANDS
public static final StringsOption COMMANDS
Last command inputs.
-
SEARCH
public static final StringsOption SEARCH
Last keyword inputs.
-
XQUERY
public static final StringsOption XQUERY
Last XQuery inputs.
-
C_FILES
public static final Comment C_FILES
Comment: files.
-
EDITOR
public static final StringsOption EDITOR
History of editor files.
-
INPUTS
public static final StringsOption INPUTS
Input/output paths.
-
OPEN
public static final StringsOption OPEN
Files opened in the editor.
-
PROJECTS
public static final StringsOption PROJECTS
History of project directories.
-
PROJFILES
public static final StringsOption PROJFILES
History of filtered project files.
-
PROJCONTS
public static final StringsOption PROJCONTS
History of filtered project file contents.
-
-
Method Detail
-
setFiles
public void setFiles(StringsOption option, String[] paths)
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
public void setFile(StringOption option, IOFile file)
Sets the string value of an option. The file path will be normalized.- Parameters:
option
- option to be setfile
- file to be assigned
-
xmlSuffixes
public String[] xmlSuffixes()
Returns the supported XML suffixes.- Returns:
- XML suffixes
-
-