API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. ComponentInputMap View Source
Author(s)
Scott Violet
Since
1.3
Version
1.11 04/07/06
Serial
Hierarchy
 Object
      InputMap
          ComponentInputMap
Implements
Subclasses
Description
public class ComponentInputMap
  A ComponentInputMap is an InputMap associated with a particular JComponent.
See also:   
Constructors
public ComponentInputMap (JComponent component)
  Creates a ComponentInputMap associated with the specified component.
Methods
Hide/Show inherited methods
public KeyStroke allKeys () [Inherited From InputMap]
  Returns an array of the KeyStrokes defined in this InputMap and its parent.
public void clear () [Overrides InputMap]
Removes all the mappings from this object.
public Object get (KeyStroke keyStroke) [Inherited From InputMap]
Returns the binding for keyStroke, messaging the parent InputMap if the binding is not locally defined.
public JComponent getComponent ()
Returns the component the InputMap was created for.
public InputMap getParent () [Inherited From InputMap]
  Gets this InputMap's parent.
public KeyStroke keys () [Inherited From InputMap]
Returns the KeyStrokes that are bound in this InputMap.
public void put (KeyStroke keyStroke, Object actionMapKey) [Overrides InputMap]
  Adds a binding for keyStroke to actionMapKey.
public void remove (KeyStroke key) [Overrides InputMap]
Removes the binding for key from this object.
public void setParent (InputMap map) [Overrides InputMap]
  Sets the parent, which must be a ComponentInputMap associated with the same component as this ComponentInputMap.
public int size () [Inherited From InputMap]
Returns the number of KeyStroke bindings.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar