ComponentInputMap
is an InputMap
associated with a particular JComponent
.
The component is automatically notified whenever
the ComponentInputMap
changes.
ComponentInputMap
s 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)JComponent Creates 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
a keyStroke, Object KeyStroke an action map key actionMapKey)Overrides javax. keyStroke to actionMapKey .
|
public void | remove(KeyStroke
the key)KeyStroke for which to remove the bindingOverrides javax. key from this object.
|
public void | setParent(InputMap
a map)ComponentInputMap Overrides javax. ComponentInputMap
associated with the same component as this
ComponentInputMap .
|
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
|