org.brains2b.swingext.action
Class ExtInputMap

java.lang.Object
  extended by javax.swing.InputMap
      extended by javax.swing.ComponentInputMap
          extended by org.brains2b.swingext.action.ExtInputMap
All Implemented Interfaces:
java.io.Serializable

public class ExtInputMap
extends javax.swing.ComponentInputMap

Quick way to make a ComponentInputMap.

As long as the JComponent implements ActionListener the InputMap is filled and an ActionMap is created and the actionCommandKey is send in the action to the ActionListener.actionPerformed(java.awt.event.ActionEvent)

Version:
0.20 [06-07-2007]
Author:
dennis@brains2b.nl
See Also:
Serialized Form

Constructor Summary
ExtInputMap(javax.swing.JComponent parent)
          Constructor for ExtInputMap.
 
Method Summary
 javax.swing.ActionMap getActionMap()
          get the actionMap created by this InputMap
 void put(javax.swing.KeyStroke keyStroke, java.lang.Object actionMapKey)
          
 
Methods inherited from class javax.swing.ComponentInputMap
clear, getComponent, remove, setParent
 
Methods inherited from class javax.swing.InputMap
allKeys, get, getParent, keys, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtInputMap

public ExtInputMap(javax.swing.JComponent parent)
Constructor for ExtInputMap.

Method Detail

put

public void put(javax.swing.KeyStroke keyStroke,
                java.lang.Object actionMapKey)

Overrides:
put in class javax.swing.ComponentInputMap

getActionMap

public javax.swing.ActionMap getActionMap()
get the actionMap created by this InputMap

Returns:
ActionMap