javax.swing.text
Class JTextComponent.KeymapActionMap
java.lang.Object
javax.swing.ActionMap
javax.swing.text.JTextComponent.KeymapActionMap
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- JTextComponent
- static class JTextComponent.KeymapActionMap
- extends ActionMap
Wraps a Keymap inside an ActionMap. This is used with
a KeymapWrapper. If get is passed in
KeymapWrapper.DefaultActionKey, the default action is
returned, otherwise if the key is an Action, it is returned.
| Fields inherited from class javax.swing.ActionMap |
|
|
Method Summary |
Action |
get(Object key)
Returns the binding for key, messaging the
parent ActionMap if the binding is not locally defined. |
Object[] |
keys()
Returns the Action names that are bound in this ActionMap. |
int |
size()
Returns the number of KeyStroke bindings. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
keymap
private Keymap keymap
JTextComponent.KeymapActionMap
JTextComponent.KeymapActionMap(Keymap keymap)
keys
public Object[] keys()
- Description copied from class:
ActionMap
- Returns the
Action names that are bound in this ActionMap.
- Overrides:
keys in class ActionMap
size
public int size()
- Description copied from class:
ActionMap
- Returns the number of
KeyStroke bindings.
- Overrides:
size in class ActionMap
get
public Action get(Object key)
- Description copied from class:
ActionMap
- Returns the binding for
key, messaging the
parent ActionMap if the binding is not locally defined.
- Overrides:
get in class ActionMap