public final class NbKeymap extends Object implements Keymap, Comparator<KeyStroke>
Modifier and Type | Class and Description |
---|---|
static class |
NbKeymap.AcceleratorBindingImpl |
Modifier and Type | Field and Description |
---|---|
static String |
BINDING_REMOVED
Extension, which indicates that the given binding should be removed by keymap
profile.
|
static String |
SHADOW_EXT
Extension of the DataShadow files; private in loaders API
|
Constructor and Description |
---|
NbKeymap() |
Modifier and Type | Method and Description |
---|---|
void |
addActionForKeyStroke(KeyStroke key,
Action a) |
int |
compare(KeyStroke k1,
KeyStroke k2) |
Action |
getAction(KeyStroke key) |
Action[] |
getBoundActions() |
KeyStroke[] |
getBoundKeyStrokes() |
static KeyStroke[] |
getContext() |
Action |
getDefaultAction() |
KeyStroke[] |
getKeyStrokesForAction(Action a) |
String |
getName() |
Keymap |
getResolveParent() |
boolean |
isLocallyDefined(KeyStroke key) |
void |
removeBindings() |
void |
removeKeyStrokeBinding(KeyStroke key) |
void |
setDefaultAction(Action a) |
void |
setResolveParent(Keymap parent) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final String BINDING_REMOVED
public static final String SHADOW_EXT
public static KeyStroke[] getContext()
public Action getDefaultAction()
getDefaultAction
in interface Keymap
public void setDefaultAction(Action a)
setDefaultAction
in interface Keymap
public KeyStroke[] getBoundKeyStrokes()
getBoundKeyStrokes
in interface Keymap
public Action[] getBoundActions()
getBoundActions
in interface Keymap
public KeyStroke[] getKeyStrokesForAction(Action a)
getKeyStrokesForAction
in interface Keymap
public boolean isLocallyDefined(KeyStroke key)
isLocallyDefined
in interface Keymap
public int compare(KeyStroke k1, KeyStroke k2)
compare
in interface Comparator<KeyStroke>
public void addActionForKeyStroke(KeyStroke key, Action a)
addActionForKeyStroke
in interface Keymap
public void removeKeyStrokeBinding(KeyStroke key)
removeKeyStrokeBinding
in interface Keymap
public void removeBindings()
removeBindings
in interface Keymap
public Keymap getResolveParent()
getResolveParent
in interface Keymap
public void setResolveParent(Keymap parent)
setResolveParent
in interface Keymap