net.sf.jfilesync.gui.keymap
Class KeyStrokeModel

java.lang.Object
  extended by net.sf.jfilesync.gui.keymap.KeyStrokeModel

public class KeyStrokeModel
extends java.lang.Object


Field Summary
private  java.util.HashMap<java.lang.String,java.util.List<javax.swing.KeyStroke>> keyStrokeHash
           
private static java.util.logging.Logger LOGGER
           
static java.lang.String TEXT_VIEW
           
 
Constructor Summary
KeyStrokeModel()
           
 
Method Summary
 void addKeyStrokeBinding(java.lang.String shortcut, javax.swing.KeyStroke keystroke)
           
 java.util.List<javax.swing.KeyStroke> getKeyStrokeList(java.lang.String shortcut)
           
static boolean isShortcut(javax.swing.KeyStroke stroke, java.lang.String shortcut)
           
static void registerAction(java.lang.String shortcut, javax.swing.JComponent component, int condition, javax.swing.AbstractAction action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyStrokeHash

private java.util.HashMap<java.lang.String,java.util.List<javax.swing.KeyStroke>> keyStrokeHash

TEXT_VIEW

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

LOGGER

private static final java.util.logging.Logger LOGGER
Constructor Detail

KeyStrokeModel

public KeyStrokeModel()
Method Detail

addKeyStrokeBinding

public void addKeyStrokeBinding(java.lang.String shortcut,
                                javax.swing.KeyStroke keystroke)

getKeyStrokeList

public java.util.List<javax.swing.KeyStroke> getKeyStrokeList(java.lang.String shortcut)
Parameters:
shortcut -
Returns:
returns keystroke for shortcut or null if shortcut unknown

registerAction

public static void registerAction(java.lang.String shortcut,
                                  javax.swing.JComponent component,
                                  int condition,
                                  javax.swing.AbstractAction action)

isShortcut

public static boolean isShortcut(javax.swing.KeyStroke stroke,
                                 java.lang.String shortcut)