com.raelity.jvi.swing
Class KeyBinding

java.lang.Object
  extended by com.raelity.jvi.swing.KeyBinding

public class KeyBinding
extends Object


Field Summary
static String KEY_BINDINGS
           
static int MOD_MASK
           
static boolean notImpDebug
           
 
Method Summary
static void addPropertyChangeListener(PropertyChangeListener listener)
           
static void addPropertyChangeListener(String p, PropertyChangeListener l)
           
static Action getAction(String key)
           
static Action[] getActions()
          Return the available actions.
static List<Action> getActionsList()
           
static JTextComponent.KeyBinding[] getBindings()
          Bind the keys to actions of their own name.
static List<JTextComponent.KeyBinding> getBindingsList()
          Return an ArrayList of bindings.
static boolean getCatchKeyDefault(String prefName)
           
static Action getDefaultAction()
           
static List getExtraBindingsList()
           
static List<JTextComponent.KeyBinding> getFunctionKeyBindingsList()
           
static Action[] getInsertModeActions()
           
static JTextComponent.KeyBinding[] getInsertModeBindings()
           
static List<JTextComponent.KeyBinding> getInsertModeBindingsList()
           
static Keymap getKeymap()
          Return a keymap for a standard swing text component.
static Set<String> getKeypadNames()
           
static void init()
           
static int[] initJavaKeyMap()
           
static boolean isKeyDebug()
           
static boolean isKnownKey(String prefName)
           
static void removeBindings(Keymap km00, Keymap km01)
          Modify the keymap km00 by removing any keystrokes specified in the keymap km01.
static void removePropertyChangeListener(PropertyChangeListener listener)
           
static void removePropertyChangeListener(String p, PropertyChangeListener l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_BINDINGS

public static final String KEY_BINDINGS
See Also:
Constant Field Values

notImpDebug

public static boolean notImpDebug

MOD_MASK

public static final int MOD_MASK
See Also:
Constant Field Values
Method Detail

isKeyDebug

public static final boolean isKeyDebug()

init

public static void init()

getKeymap

public static Keymap getKeymap()
Return a keymap for a standard swing text component. Also, if not already existing, construct insert and normal mode keymaps only used for user defined mappings.


getDefaultAction

public static Action getDefaultAction()

removeBindings

public static void removeBindings(Keymap km00,
                                  Keymap km01)
Modify the keymap km00 by removing any keystrokes specified in the keymap km01. This is typically used to remove keys that vi would normally be looking at, e.g. function keys, but are otherwise bound to the environment in which vi is operating.


getBindings

public static JTextComponent.KeyBinding[] getBindings()
Bind the keys to actions of their own name. This is simply a way to grab all the keys. May want to use key events directly at some point.


getBindingsList

public static List<JTextComponent.KeyBinding> getBindingsList()
Return an ArrayList of bindings. This can be modified without affecting the backing list.


getExtraBindingsList

public static List getExtraBindingsList()

getFunctionKeyBindingsList

public static List<JTextComponent.KeyBinding> getFunctionKeyBindingsList()

getActions

public static Action[] getActions()
Return the available actions. NEEDSWORK: only need actionsMap, use values to get all the actions.


getAction

public static Action getAction(String key)

getActionsList

public static List<Action> getActionsList()

getInsertModeBindings

public static JTextComponent.KeyBinding[] getInsertModeBindings()

getInsertModeBindingsList

public static List<JTextComponent.KeyBinding> getInsertModeBindingsList()

getInsertModeActions

public static Action[] getInsertModeActions()

initJavaKeyMap

public static int[] initJavaKeyMap()

getCatchKeyDefault

public static boolean getCatchKeyDefault(String prefName)

isKnownKey

public static boolean isKnownKey(String prefName)

getKeypadNames

public static Set<String> getKeypadNames()

addPropertyChangeListener

public static void addPropertyChangeListener(PropertyChangeListener listener)

removePropertyChangeListener

public static void removePropertyChangeListener(PropertyChangeListener listener)

addPropertyChangeListener

public static void addPropertyChangeListener(String p,
                                             PropertyChangeListener l)

removePropertyChangeListener

public static void removePropertyChangeListener(String p,
                                                PropertyChangeListener l)