|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.commons.gui.shortcut.EmacsKeyBindings
public class EmacsKeyBindings
Generic class which activates Emacs keybindings for java input JTextComponent
s.
The inner class actions can also be used independently.
Nested Class Summary | |
---|---|
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. |
Field Summary | |
---|---|
static String |
backwardKillWordAction
|
static String |
capitalizeWordAction
|
static String |
downcaseWordAction
|
static JTextComponent.KeyBinding[] |
EMACS_KEY_BINDINGS
|
static String |
killLineAction
|
static String |
killRegionAction
|
static String |
killRingSaveAction
|
static String |
killWordAction
|
static String |
setMarkCommandAction
|
static String |
upcaseWordAction
|
static String |
yankAction
|
static String |
yankPopAction
|
Constructor Summary | |
---|---|
EmacsKeyBindings()
|
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String killLineAction
public static final String killRingSaveAction
public static final String killRegionAction
public static final String backwardKillWordAction
public static final String capitalizeWordAction
public static final String downcaseWordAction
public static final String killWordAction
public static final String setMarkCommandAction
public static final String yankAction
public static final String yankPopAction
public static final String upcaseWordAction
public static final JTextComponent.KeyBinding[] EMACS_KEY_BINDINGS
Constructor Detail |
---|
public EmacsKeyBindings()
Method Detail |
---|
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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |