Enum KeyBindingActionNames
- All Implemented Interfaces:
Serializable
,Comparable<KeyBindingActionNames>
,java.lang.constant.Constable
public enum KeyBindingActionNames extends Enum<KeyBindingActionNames>
An Enumeration of all named key bindings for the program.
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description String
getDisplayName()
KeyStroke[]
getKeyStrokes()
boolean
isRemappable()
void
remapKeyStrokes(KeyStroke[] keyStrokes)
Remaps the binding to a new set of keystrokes.static KeyBindingActionNames
valueOf(String name)
Returns the enum constant of this type with the specified name.static KeyBindingActionNames[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNDO
-
REDO
-
SEARCH
-
GOTO_LINE
-
DELETE_WORD_BACK
-
DELETE_WORD_FORWARD
-
MOVE_WORD_FORWARD
-
MOVE_WORD_FORWARD_SELECT
-
MOVE_WORD_BACK
-
MOVE_WORD_BACK_SELECT
-
KILL_TO_END
-
CLEAR_COMMAND
-
NEXT_OR_ENTER_REVERSE
-
PRIOR_REVERSE
-
SELECT_ALL
-
CLEAR
-
MARK_WORD
-
HOME
-
HOME_SELECT
-
END
-
END_SELECT
-
LEFT_BEEP
-
RIGHT_BEEP
-
HISTORY_PRIOR_UP
-
HISTORY_NEXT_DOWN
-
HISTORY_PRIOR
-
HISTORY_NEXT
-
COPY_COMMANDS
-
EXECUTE_LINES
-
SAVE
-
EXECUTE_ALL
-
COMMENT_LINES
-
BLOCK_COMMENT_LINES
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDisplayName
-
getKeyStrokes
-
isRemappable
public boolean isRemappable() -
remapKeyStrokes
Remaps the binding to a new set of keystrokes. This does nothing if the binding is not remappable. Also note that the old key bindings will still need to be removed from an ActionMaps and the new ones added in.- Parameters:
keyStrokes
-
-