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.
| Modifier and Type | Field and Description |
|---|---|
| private JComponent | component
Component binding is created for. |
| Access | Constructor and Description |
|---|---|
| public | ComponentInputMap(JComponent
a non-null component)JComponentCreates a |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public JComponent | Returns: the component theInputMap was created for.Returns the component the |
| public void | put(KeyStroke keyStroke, Object actionMapKey)
Overrides javax. Adds a binding for |
| public void | remove(KeyStroke key)
Overrides javax. Removes the binding for |
| public void | setParent(InputMap
a map)ComponentInputMapOverrides javax. Sets the parent, which must be a |
| component | back to summary |
|---|---|
| private JComponent component Component binding is created for. | |
| ComponentInputMap | back to summary |
|---|---|
| public ComponentInputMap(JComponent component) Creates a
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides javax. Removes all the mappings from this object. | |
| getComponent | back to summary |
|---|---|
| public JComponent getComponent() Returns the component the
| |
| put | back to summary |
|---|---|
| public void put(KeyStroke keyStroke, Object actionMapKey) Overrides javax. Adds a binding for | |
| remove | back to summary |
|---|---|
| public void remove(KeyStroke key) Overrides javax. Removes the binding for | |
| setParent | back to summary |
|---|---|
| public void setParent(InputMap map) Overrides javax. Sets the parent, which must be a
| |