public class EmacsKeyBindings
extends java.lang.Object
JTextComponent
s.
The inner class actions can also be used independently.Modifier and Type | Class and Description |
---|---|
static class |
EmacsKeyBindings.BackwardKillWordAction
This action kills the previous word.
|
static class |
EmacsKeyBindings.CapitalizeWordAction
This action capitalizes the next word on the right side of the caret.
|
static class |
EmacsKeyBindings.DowncaseWordAction
This action renders all characters of the next word to lowercase.
|
static class |
EmacsKeyBindings.KillLineAction
This actin kills text up to the end of the current line and stores it in
the killring.
|
static class |
EmacsKeyBindings.KillRegionAction
This action Kills the marked region and stores it in the killring.
|
static class |
EmacsKeyBindings.KillRing
Manages all killed (cut) text pieces in a ring which is accessible
through
EmacsKeyBindings.YankPopAction . |
static class |
EmacsKeyBindings.KillRingSaveAction
This action copies the marked region and stores it in the killring.
|
static class |
EmacsKeyBindings.KillWordAction
This action kills the next word.
|
static class |
EmacsKeyBindings.SetMarkCommandAction
This action sets a beginning mark for a selection.
|
static class |
EmacsKeyBindings.UpcaseWordAction
This action renders all characters of the next word to upppercase.
|
static class |
EmacsKeyBindings.YankAction
This action pastes text from the killring.
|
static class |
EmacsKeyBindings.YankPopAction
This action pastes an element from the killring cycling through it.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
backwardKillWordAction |
static java.lang.String |
capitalizeWordAction |
static java.lang.String |
downcaseWordAction |
static javax.swing.text.JTextComponent.KeyBinding |
EMACS_KEY_BINDING_C_A |
static javax.swing.text.JTextComponent.KeyBinding[] |
EMACS_KEY_BINDINGS_BASE |
static java.lang.String |
killLineAction |
static java.lang.String |
killRegionAction |
static java.lang.String |
killRingSaveAction |
static java.lang.String |
killWordAction |
static java.lang.String |
setMarkCommandAction |
static java.lang.String |
upcaseWordAction |
static java.lang.String |
yankAction |
static java.lang.String |
yankPopAction |
Constructor and Description |
---|
EmacsKeyBindings() |
Modifier and Type | Method and Description |
---|---|
static void |
load()
Loads the emacs keybindings for all common
JTextComponent s. |
static void |
unload()
Restores the original keybindings for the concrete subclasses of
JTextComponent . |
public static final java.lang.String killLineAction
public static final java.lang.String killRingSaveAction
public static final java.lang.String killRegionAction
public static final java.lang.String backwardKillWordAction
public static final java.lang.String capitalizeWordAction
public static final java.lang.String downcaseWordAction
public static final java.lang.String killWordAction
public static final java.lang.String setMarkCommandAction
public static final java.lang.String yankAction
public static final java.lang.String yankPopAction
public static final java.lang.String upcaseWordAction
public static final javax.swing.text.JTextComponent.KeyBinding[] EMACS_KEY_BINDINGS_BASE
public static final javax.swing.text.JTextComponent.KeyBinding EMACS_KEY_BINDING_C_A
public static void load()
JTextComponent
s.
The shared keymap instances of the concrete subclasses of
JTextComponent
are fed with the keybindings.
The original keybindings are stored in a backup array.public static void unload()
JTextComponent
.