org.netbeans.core
Class NbKeymap
java.lang.Object
org.netbeans.core.NbKeymap
- All Implemented Interfaces:
- Comparator<KeyStroke>, Keymap
public final class NbKeymap
- extends Object
- implements Keymap, Comparator<KeyStroke>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NbKeymap
public NbKeymap()
getContext
public static KeyStroke[] getContext()
getDefaultAction
public Action getDefaultAction()
- Specified by:
getDefaultAction in interface Keymap
setDefaultAction
public void setDefaultAction(Action a)
- Specified by:
setDefaultAction in interface Keymap
getName
public String getName()
- Specified by:
getName in interface Keymap
getAction
public Action getAction(KeyStroke key)
- Specified by:
getAction in interface Keymap
getBoundKeyStrokes
public KeyStroke[] getBoundKeyStrokes()
- Specified by:
getBoundKeyStrokes in interface Keymap
getBoundActions
public Action[] getBoundActions()
- Specified by:
getBoundActions in interface Keymap
getKeyStrokesForAction
public KeyStroke[] getKeyStrokesForAction(Action a)
- Specified by:
getKeyStrokesForAction in interface Keymap
isLocallyDefined
public boolean isLocallyDefined(KeyStroke key)
- Specified by:
isLocallyDefined in interface Keymap
compare
public int compare(KeyStroke k1,
KeyStroke k2)
- Specified by:
compare in interface Comparator<KeyStroke>
addActionForKeyStroke
public void addActionForKeyStroke(KeyStroke key,
Action a)
- Specified by:
addActionForKeyStroke in interface Keymap
removeKeyStrokeBinding
public void removeKeyStrokeBinding(KeyStroke key)
- Specified by:
removeKeyStrokeBinding in interface Keymap
removeBindings
public void removeBindings()
- Specified by:
removeBindings in interface Keymap
getResolveParent
public Keymap getResolveParent()
- Specified by:
getResolveParent in interface Keymap
setResolveParent
public void setResolveParent(Keymap parent)
- Specified by:
setResolveParent in interface Keymap