java.lang.Object | +--javax.swing.InputMap | +--javax.swing.ComponentInputMap
Unsafe:
ComponentInputMap(JComponent component)
ComponentInputMap associated with the
specified component.
void
put(KeyStroke keyStroke,
Object actionMapKey)
keyStroke to actionMapKey.
void
setParent(InputMap map)
ComponentInputMap
associated with the same component as this
ComponentInputMap.
private JComponent component
public ComponentInputMap(JComponent component)
ComponentInputMap associated with the
specified component.
component - a non-null JComponent
IllegalArgumentException - if component is nullpublic void setParent(InputMap map)
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 componentpublic JComponent getComponent()
InputMap was created for.
public void put(KeyStroke keyStroke, Object actionMapKey)
keyStroke to actionMapKey.
If actionMapKey is null, this removes the current binding
for keyStroke.
public void remove(KeyStroke key)
public void clear()