java.lang.Object | ||
↳ | javax.swing.InputMap | |
↳ | javax.swing.ComponentInputMap |
![]() |
A 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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
ComponentInputMap associated with the
specified component. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Removes all the mappings from this object.
| |||||||||||
Returns the component the
InputMap was created for. | |||||||||||
Adds a binding for
keyStroke to actionMapKey . | |||||||||||
Removes the binding for
key from this object. | |||||||||||
Sets the parent, which must be a
ComponentInputMap
associated with the same component as this
ComponentInputMap . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a ComponentInputMap
associated with the
specified component.
component | a non-null JComponent |
---|
IllegalArgumentException | if component is null
|
---|
Removes all the mappings from this object.
Adds a binding for keyStroke
to actionMapKey
.
If actionMapKey
is null, this removes the current binding
for keyStroke
.
Sets the parent, which must be a ComponentInputMap
associated with the same component as this
ComponentInputMap
.
map | a ComponentInputMap |
---|
IllegalArgumentException | if map
is not a ComponentInputMap
or is not associated with the same component
|
---|