javax.swing
Class ComponentInputMap

java.lang.Object
javax.swing.InputMap
javax.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.
| Fields inherited from class javax.swing.InputMap |
|
|
Constructor Summary |
ComponentInputMap(JComponent comp)
Creates ComponentInputMap object that notifies the given
component about changes to it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
component
private JComponent component
- The component to notify.
ComponentInputMap
public ComponentInputMap(JComponent comp)
- Creates
ComponentInputMap object that notifies the given
component about changes to it.
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.