public interface Keymap
Modifier and Type | Method and Description |
---|---|
void |
addActionForKeyStroke(KeyStroke key, Action a)
添加一个绑定的键盘布局。
|
Action |
getAction(KeyStroke key)
取行动适当的象征性的事件序列。
|
Action[] |
getBoundActions()
获取所有的在这个你所定义的行为。
|
KeyStroke[] |
getBoundKeyStrokes()
获取所有的在这张Map上,一定会有些动作按键。
|
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()
KeyStroke[] getKeyStrokesForAction(Action a)
a
-行动
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
-父键映射
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.