public class ComponentInputMap extends InputMap
ComponentInputMap是一个InputMap与特定的JComponent相关JComponent 。 
       当ComponentInputMap发生变化时, ComponentInputMap将自动通知。 
       ComponentInputMap s用于WHEN_IN_FOCUSED_WINDOW绑定。 
      | Constructor and Description | 
|---|
| ComponentInputMap(JComponent component)
              创建 
              ComponentInputMap具有指定的组件相关联。 | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()
              从此对象中删除所有映射。 
             | 
| JComponent | getComponent()
              返回为InputMap创建的 
              InputMap。 | 
| void | put(KeyStroke keyStroke, Object actionMapKey)
              添加一个绑定 
              keyStroke到actionMapKey。 | 
| void | remove(KeyStroke key)
              从此对象中删除 
              key的绑定。 | 
| void | setParent(InputMap map)
              设置父,它必须是一个 
              ComponentInputMap具有相同的成分作为此相关的ComponentInputMap。 | 
public ComponentInputMap(JComponent component)
ComponentInputMap具有指定的组件相关联。 
          component - 非空 
            JComponent 
           IllegalArgumentException - 如果 
            component为空 
           public void setParent(InputMap map)
ComponentInputMap具有相同的成分作为此相关的 
           ComponentInputMap 。 
          setParent在 
            InputMap 
           map - a 
            ComponentInputMap 
           IllegalArgumentException - 如果 
            map不是 
            ComponentInputMap或与相同的组件没有关联 
           public JComponent getComponent()
InputMap 。 
          public void put(KeyStroke keyStroke, Object actionMapKey)
keyStroke的绑定添加到actionMapKey 。 
           如果actionMapKey为空,则将删除keyStroke的当前绑定。 
           Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.