org.xnap.gui.util
Class EmacsKeyBindings

java.lang.Object
  extended by org.xnap.gui.util.EmacsKeyBindings

public class EmacsKeyBindings
extends java.lang.Object

Generic class which activates Emacs keybindings for java input JTextComponents. TODO: Some actions don't work at the end of line, that's because they depend on built-in actions.


Nested Class Summary
static class EmacsKeyBindings.BackwardKillWordAction
          Kills the previous word.
static class EmacsKeyBindings.CapitalizeWordAction
          Capitalizes the next word.
static class EmacsKeyBindings.DowncaseWordAction
          Renders all characters of the next word to lowercase.
static class EmacsKeyBindings.KillLineAction
          Kills text up to the end of the current line and stores it in the killring.
static class EmacsKeyBindings.KillRegionAction
          Kills the marked region and stores it in the killring.
static class EmacsKeyBindings.KillRingSaveAction
          Copies the marked region and stores it in the killring.
static class EmacsKeyBindings.KillWordAction
          Kills the next word.
static class EmacsKeyBindings.SetMarkCommandAction
          Sets a beginning mark.
static class EmacsKeyBindings.UpcaseWordAction
          Renders all characters of the next word to upppercase.
static class EmacsKeyBindings.YankAction
          Pastes text from killring.
static class EmacsKeyBindings.YankPopAction
          Pastes an element from the killring cycling through it.
 
Field Summary
static java.lang.String backwardKillWordAction
           
static java.lang.String capitalizeWordAction
           
static java.lang.String downcaseWordAction
           
static javax.swing.text.JTextComponent.KeyBinding[] EMACS_KEY_BINDINGS
           
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 Summary
EmacsKeyBindings()
           
 
Method Summary
static void load()
           
static void unload()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

killLineAction

public static final java.lang.String killLineAction
See Also:
Constant Field Values

killRingSaveAction

public static final java.lang.String killRingSaveAction
See Also:
Constant Field Values

killRegionAction

public static final java.lang.String killRegionAction
See Also:
Constant Field Values

backwardKillWordAction

public static final java.lang.String backwardKillWordAction
See Also:
Constant Field Values

capitalizeWordAction

public static final java.lang.String capitalizeWordAction
See Also:
Constant Field Values

downcaseWordAction

public static final java.lang.String downcaseWordAction
See Also:
Constant Field Values

killWordAction

public static final java.lang.String killWordAction
See Also:
Constant Field Values

setMarkCommandAction

public static final java.lang.String setMarkCommandAction
See Also:
Constant Field Values

yankAction

public static final java.lang.String yankAction
See Also:
Constant Field Values

yankPopAction

public static final java.lang.String yankPopAction
See Also:
Constant Field Values

upcaseWordAction

public static final java.lang.String upcaseWordAction
See Also:
Constant Field Values

EMACS_KEY_BINDINGS

public static final javax.swing.text.JTextComponent.KeyBinding[] EMACS_KEY_BINDINGS
Constructor Detail

EmacsKeyBindings

public EmacsKeyBindings()
Method Detail

load

public static void load()

unload

public static void unload()


Copyright © 2001-2005 XNap Team. All Rights Reserved.