javax.swing
public class ComponentInputMap extends InputMap
ComponentInputMap changes.
| 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, 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.
|
ComponentInputMap object that notifies the given
component about changes to it.
Parameters: comp the component to notify
Throws: IllegalArgumentException if comp is null
InputMap.Returns: a JComponent object
InputMap.
If actionMapKey is null an existing entry will be removed.
Parameters: keystroke the keystroke for the entry value the action.
InputMap.
Parameters: keystroke the key of the entry to remove
ComponentInputMap.
Parameters: parentMap the new parent
Throws: IllegalArgumentException if parentMap is not a
ComponentInputMap or not associated with the same component