API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. InputMap View Source
Author(s)
Scott Violet
Since
1.3
Version
1.15 11/17/05
Serial
Hierarchy
 Object
      InputMap
Implements
 Serializable
Subclasses
Description
public class InputMap
  InputMap provides a binding between an input event (currently only KeyStrokes are used) and an Object.
See also:   
Constructors
public InputMap ()
Creates an InputMap with no parent and no mappings.
Methods
Hide/Show inherited methods
public KeyStroke allKeys ()
  Returns an array of the KeyStrokes defined in this InputMap and its parent.
public void clear ()
Removes all the mappings from this InputMap.
public Object get (KeyStroke keyStroke)
Returns the binding for keyStroke, messaging the parent InputMap if the binding is not locally defined.
public InputMap getParent ()
  Gets this InputMap's parent.
public KeyStroke keys ()
Returns the KeyStrokes that are bound in this InputMap.
public void put (KeyStroke keyStroke, Object actionMapKey)
  Adds a binding for keyStroke to actionMapKey.
public void remove (KeyStroke key)
Removes the binding for key from this InputMap.
public void setParent (InputMap map)
  Sets this InputMap's parent.
public int size ()
Returns the number of KeyStroke bindings.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar