Package org.basex.gui.layout
Enum Class BaseXKeys
- All Implemented Interfaces:
Serializable,Comparable<BaseXKeys>,java.lang.constant.Constable
This class offers system-dependent key mappings.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen, Leo Woerteler, Klavs Prieditis
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClose tab.Code completion.Context menu.Copy.Copy.Copy path.Cut.Cut.Decrease size.Delete line to end.Delete complete line.Delete line to begin.Delete.Delete word.Delete backwards.Delete word backwards.Duplicate line(s).Enter.Escape.Execute.Find search term.Find next hit.Find next hit.Find previous hit.Find previous hit.Jump to editor.Jump to input bar.Browse back.Browse forward.Browse home.Go to line.Browse up.Increment size.Increment size.End of line.Beginning of line.Match case.Move line(s) down.Move line(s) up.Multi-line.New directory.Right.Down.Page down.Page down (read-only).Next tab.Word right.Standard size.Paste.Paste.Left.Up.Page up.Page up (read-only).Previous tab.Word left.Redo.Refresh.Regular expression.Rename.Scroll down.Scroll up.Select all.Shift Enter.Space key.Tab key.End of text.Beginning of text.Undo.Test.Whole word. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns true if the pressed key includes a control key.booleanReturns true if the specified key combination was pressed.static booleanReturns true if the pressed key is a modifier key (including 'escape' and 'tab' + control key).static booleansc(InputEvent e) Returns true if the system's shortcut key was pressed.toString()static BaseXKeysReturns the enum constant of this class with the specified name.static BaseXKeys[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PREVCHAR
Left. -
NEXTCHAR
Right. -
PREVWORD
Word left. -
NEXTWORD
Word right. -
LINESTART
Beginning of line. -
LINEEND
End of line. -
PREVLINE
Up. -
NEXTLINE
Down. -
PREVPAGE
Page up. -
NEXTPAGE
Page down. -
TEXTSTART
Beginning of text. -
TEXTEND
End of text. -
SCROLLUP
Scroll up. -
SCROLLDOWN
Scroll down. -
TAB
Tab key. -
PREVPAGE_RO
Page up (read-only). -
NEXTPAGE_RO
Page down (read-only). -
DELPREV
Delete backwards. -
DELNEXT
Delete. -
UNDOSTEP
Undo. -
REDOSTEP
Redo. -
CUT1
Cut. -
CUT2
Cut. -
COPY1
Copy. -
COPY2
Copy. -
PASTE1
Paste. -
PASTE2
Paste. -
SELECTALL
Select all. -
MOVEDOWN
Move line(s) down. -
MOVEUP
Move line(s) up. -
COMPLETE
Code completion. -
DELPREVWORD
Delete word backwards. -
DELNEXTWORD
Delete word. -
DELLINESTART
Delete line to begin. -
DELLINEEND
Delete line to end. -
DELLINES
Delete complete line. -
DUPLLINES
Duplicate line(s). -
FOCUSINPUT
Jump to input bar. -
FOCUSEDITOR
Jump to editor. -
NEXTTAB
Next tab. -
PREVTAB
Previous tab. -
CLOSETAB
Close tab. -
GOBACK
Browse back. -
GOFORWARD
Browse forward. -
GOUP
Browse up. -
GOHOME
Browse home. -
GOTOLINE
Go to line. -
FIND
Find search term. -
FINDNEXT1
Find next hit. -
FINDNEXT2
Find next hit. -
FINDPREV1
Find previous hit. -
FINDPREV2
Find previous hit. -
MATCHCASE
Match case. -
WHOLEWORD
Whole word. -
REGEX
Regular expression. -
MULTILINE
Multi-line. -
INCFONT1
Increment size. -
INCFONT2
Increment size. -
DECFONT
Decrease size. -
NORMFONT
Standard size. -
EXEC1
Execute. -
UNIT
Test. -
ESCAPE
Escape. -
CONTEXT
Context menu. -
COPYPATH
Copy path. -
REFRESH
Refresh. -
RENAME
Rename. -
NEWDIR
New directory. -
SPACE
Space key. -
ENTER
Enter. -
SHIFT_ENTER
Shift Enter.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
is
Returns true if the specified key combination was pressed.- Parameters:
e- key event- Returns:
- result of check
-
sc
Returns true if the system's shortcut key was pressed.- Parameters:
e- input event- Returns:
- result of check
-
control
Returns true if the pressed key includes a control key.- Parameters:
e- key event- Returns:
- result of check
-
modifier
Returns true if the pressed key is a modifier key (including 'escape' and 'tab' + control key).- Parameters:
e- key event- Returns:
- result of check
-
toString
-