Home » openjdk-7 » javax » swing » text » [javadoc | source]
javax.swing.text
static class: JTextComponent.KeymapWrapper [javadoc | source]
java.lang.Object
   javax.swing.InputMap
      javax.swing.text.JTextComponent$KeymapWrapper

All Implemented Interfaces:
    Serializable

KeymapWrapper wraps a Keymap inside an InputMap. For KeymapWrapper to be useful it must be used with a KeymapActionMap. KeymapWrapper for the most part, is an InputMap with two parents. The first parent visited is ALWAYS the Keymap, with the second parent being the parent inherited from InputMap. If keymap.getAction returns null, implying the Keymap does not have a binding for the KeyStroke, the parent is then visited. If the Keymap has a binding, the Action is returned, if not and the KeyStroke represents a KeyTyped event and the Keymap has a defaultAction, DefaultActionKey is returned.

KeymapActionMap is then able to transate the object passed in to either message the Keymap, or message its default implementation.
Field Summary
static final  Object DefaultActionKey     
Constructor:
 KeymapWrapper(Keymap keymap) 
Method from javax.swing.text.JTextComponent$KeymapWrapper Summary:
get,   keys,   size
Methods from javax.swing.InputMap:
allKeys,   clear,   get,   getParent,   keys,   put,   remove,   setParent,   size
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.JTextComponent$KeymapWrapper Detail:
 public Object get(KeyStroke keyStroke) 
 public KeyStroke[] keys() 
 public int size()