org.netbeans.core/2 3.32

org.netbeans.core
Class NbKeymap

java.lang.Object
  extended by org.netbeans.core.NbKeymap
All Implemented Interfaces:
Comparator<KeyStroke>, Keymap

public final class NbKeymap
extends Object
implements Keymap, Comparator<KeyStroke>


Nested Class Summary
static class NbKeymap.AcceleratorBindingImpl
           
 
Constructor Summary
NbKeymap()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

NbKeymap

public NbKeymap()
Method Detail

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

org.netbeans.core/2 3.32

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.