|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Unsafe:
Method Summary | |
void |
addActionForKeyStroke(KeyStroke key,
Action a)
Enabled: Adds a binding to the keymap. |
Action |
getAction(KeyStroke key)
Suppressed: Fetches the action appropriate for the given symbolic event sequence. |
Action[] |
getBoundActions()
Enabled: Fetches all of the actions defined in this keymap. |
KeyStroke[] |
getBoundKeyStrokes()
Enabled: Fetches all of the keystrokes in this map that are bound to some action. |
Action |
getDefaultAction()
Enabled: Fetches the default action to fire if a key is typed (i.e. |
KeyStroke[] |
getKeyStrokesForAction(Action a)
Enabled: Fetches the keystrokes that will result in the given action. |
String |
getName()
Suppressed: Fetches the name of the set of key-bindings. |
Keymap |
getResolveParent()
Suppressed: Fetches the parent keymap used to resolve key-bindings. |
boolean |
isLocallyDefined(KeyStroke key)
Enabled: Determines if the given key sequence is locally defined. |
void |
removeBindings()
Enabled: Removes all bindings from the keymap. |
void |
removeKeyStrokeBinding(KeyStroke keys)
Enabled: Removes a binding from the keymap. |
void |
setDefaultAction(Action a)
Enabled: Set the default action to fire if a key is typed. |
void |
setResolveParent(Keymap parent)
Enabled: Sets the parent keymap, which will be used to resolve key-bindings. |
Method Detail |
public String getName()
public Action getDefaultAction()
public void setDefaultAction(Action a)
a
- the actionpublic Action getAction(KeyStroke key)
key
- the key sequence
null
public KeyStroke[] getBoundKeyStrokes()
public Action[] getBoundActions()
public KeyStroke[] getKeyStrokesForAction(Action a)
a
- the action
public boolean isLocallyDefined(KeyStroke key)
key
- the key sequence
public void addActionForKeyStroke(KeyStroke key, Action a)
key
- the key sequencea
- the actionpublic void removeKeyStrokeBinding(KeyStroke keys)
keys
- the key sequencepublic void removeBindings()
public Keymap getResolveParent()
public void setResolveParent(Keymap parent)
parent
- the parent keymap
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |