javax.swing.text
Class JTextComponent.KeymapActionMap

java.lang.Object
  extended byjavax.swing.ActionMap
      extended byjavax.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.


Field Summary
private  Keymap keymap
           
 
Fields inherited from class javax.swing.ActionMap
 
Constructor Summary
(package private) JTextComponent.KeymapActionMap(Keymap keymap)
           
 
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 javax.swing.ActionMap
allKeys, clear, getParent, put, remove, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keymap

private Keymap keymap
Constructor Detail

JTextComponent.KeymapActionMap

JTextComponent.KeymapActionMap(Keymap keymap)
Method Detail

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