Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.swing
Class ComponentInputMap  view ComponentInputMap download ComponentInputMap.java

java.lang.Object
  extended byjavax.swing.InputMap
      extended byjavax.swing.ComponentInputMap
All Implemented Interfaces:
java.io.Serializable

public class ComponentInputMap
extends InputMap

An InputMap that is associated with a particular JComponent. The component is notified when its ComponentInputMap changes.


Field Summary
private  JComponent component
          The component to notify.
 
Fields inherited from class javax.swing.InputMap
 
Constructor Summary
ComponentInputMap(JComponent comp)
          Creates ComponentInputMap object that notifies the given component about changes to it.
 
Method Summary
 void clear()
          Clears the InputMap.
 JComponent getComponent()
          Returns the component to notify about changes.
 void put(KeyStroke keystroke, java.lang.Object value)
          Puts a new entry into the InputMap.
 void remove(KeyStroke keystroke)
          Remove an entry from the InputMap.
 void setParent(InputMap parentMap)
          Sets a parent for this ComponentInputMap.
 
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
 

Field Detail

component

private JComponent component
The component to notify.

Constructor Detail

ComponentInputMap

public ComponentInputMap(JComponent comp)
Creates ComponentInputMap object that notifies the given component about changes to it.

Method Detail

put

public void put(KeyStroke keystroke,
                java.lang.Object value)
Puts a new entry into the InputMap. If actionMapKey is null an existing entry will be removed.

Overrides:
put in class InputMap

clear

public void clear()
Clears the InputMap.

Overrides:
clear in class InputMap

remove

public void remove(KeyStroke keystroke)
Remove an entry from the InputMap.

Overrides:
remove in class InputMap

setParent

public void setParent(InputMap parentMap)
Sets a parent for this ComponentInputMap.

Overrides:
setParent in class InputMap

getComponent

public JComponent getComponent()
Returns the component to notify about changes.