Home » openjdk-7 » javax » swing » [javadoc | source]
public class: ComponentInputMap [javadoc | source]

All Implemented Interfaces:

Direct Known Subclasses:
    ComponentInputMapUIResource, RootPaneInputMap

A ComponentInputMap is an InputMap associated with a particular JComponent. The component is automatically notified whenever the ComponentInputMap changes. ComponentInputMaps are used for WHEN_IN_FOCUSED_WINDOW bindings.
 public ComponentInputMap(JComponent component) 
    Creates a ComponentInputMap associated with the specified component.
    component - a non-null JComponent
    IllegalArgumentException - if component is null
Method from javax.swing.ComponentInputMap Summary:
clear,   getComponent,   put,   remove,   setParent
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.ComponentInputMap Detail:
 public  void clear() 
    Removes all the mappings from this object.
 public JComponent getComponent() 
    Returns the component the InputMap was created for.
 public  void put(KeyStroke keyStroke,
    Object actionMapKey) 
    Adds a binding for keyStroke to actionMapKey. If actionMapKey is null, this removes the current binding for keyStroke.
 public  void remove(KeyStroke key) 
    Removes the binding for key from this object.
 public  void setParent(InputMap map) 
    Sets the parent, which must be a ComponentInputMap associated with the same component as this ComponentInputMap.