public interface Keymap 
      | Modifier and Type | Method and Description | 
|---|---|
| void | addActionForKeyStroke(KeyStroke key, Action a)
              添加绑定到键盘映射。 
             | 
| Action | getAction(KeyStroke key)
              获取适用于给定符号事件序列的动作。 
             | 
| Action[] | getBoundActions()
              获取此键盘映射中定义的所有操作。 
             | 
| KeyStroke[] | getBoundKeyStrokes()
              获取此映射中所有与某些操作绑定的按键。 
             | 
| Action | getDefaultAction()
              如果键入键,则获取默认操作以触发(即, 
             | 
| KeyStroke[] | getKeyStrokesForAction(Action a)
              获取将导致给定操作的按键。 
             | 
| String | getName()
              获取一组键绑定的名称。 
             | 
| Keymap | getResolveParent()
              获取用于解析键绑定的父键盘映射。 
             | 
| boolean | isLocallyDefined(KeyStroke key)
              确定给定的键序列是否在本地定义。 
             | 
| void | removeBindings()
              删除键盘映射中的所有绑定。 
             | 
| void | removeKeyStrokeBinding(KeyStroke keys)
              从键盘图中移除一个绑定。 
             | 
| void | setDefaultAction(Action a)
              如果键入键,则将默认操作设置为触发。 
             | 
| void | setResolveParent(Keymap parent)
              设置父密钥映射,将用于解析密钥绑定。 
             | 
String getName()
Action getDefaultAction()
void setDefaultAction(Action a)
a - 行动 
           Action getAction(KeyStroke key)
key - 关键序列 
           null 
           KeyStroke[] getBoundKeyStrokes()
Action[] getBoundActions()
boolean isLocallyDefined(KeyStroke key)
key - 关键序列 
           void addActionForKeyStroke(KeyStroke key, Action a)
key - 关键序列 
           a - 行动 
           void removeKeyStrokeBinding(KeyStroke keys)
keys - 关键序列 
           void removeBindings()
Keymap getResolveParent()
void setResolveParent(Keymap parent)
Keymap本身是其解决的父母之一,行为是不明确的。 
          parent - the parent keymap 
            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.