软件包 | 描述 |
---|---|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
Modifier and Type | Method and Description |
---|---|
KeyStroke[] |
InputMap.allKeys()
返回在这
InputMap 及其母
KeyStroke s数组定义。
|
KeyStroke |
JMenuItem.getAccelerator()
返回作为菜单项的
KeyStroke 加速器。
|
static KeyStroke |
KeyStroke.getKeyStroke(char keyChar)
返回一个
KeyStroke 表示指定的字符一个
KEY_TYPED 事件共享实例。
|
static KeyStroke |
KeyStroke.getKeyStroke(Character keyChar, int modifiers)
返回一个
KeyStroke 表示指定的字符对象和一组修饰符
KEY_TYPED 事件共享实例。
|
static KeyStroke |
KeyStroke.getKeyStroke(char keyChar, boolean onKeyRelease)
过时的。
使用getkeystroke(char)
|
static KeyStroke |
KeyStroke.getKeyStroke(int keyCode, int modifiers)
返回一个按键共享实例,给出了一个数字键码和一组修饰符。
|
static KeyStroke |
KeyStroke.getKeyStroke(int keyCode, int modifiers, boolean onKeyRelease)
返回一个按键共享实例,给出了一个数字键码和一组修饰符指定键是否被按下或释放时激活它。
|
static KeyStroke |
KeyStroke.getKeyStroke(String s)
将一个字符串并返回一个
KeyStroke 。
|
static KeyStroke |
KeyStroke.getKeyStrokeForEvent(KeyEvent anEvent)
返回一个按键代表keyEvent中风产生了。
|
KeyStroke[] |
JComponent.getRegisteredKeyStrokes()
返回
KeyStrokes 将发起注册的行为。
|
KeyStroke[] |
InputMap.keys()
返回被绑定在这
InputMap 的
KeyStroke s。
|
Modifier and Type | Method and Description |
---|---|
Object |
InputMap.get(KeyStroke keyStroke)
返回绑定消息
keyStroke ,母
InputMap 如果结合不确定。
|
ActionListener |
JComponent.getActionForKeyStroke(KeyStroke aKeyStroke)
返回将执行动作注册为一个给定的键的对象。
|
int |
JComponent.getConditionForKeyStroke(KeyStroke aKeyStroke)
返回的条件,决定是否注册行动发生在响应于指定的按键。
|
static boolean |
SwingUtilities.notifyAction(Action action, KeyStroke ks, KeyEvent event, Object sender, int modifiers)
如果在调用
actionPerformed
action
action 启用(而非
null )。
|
protected boolean |
JMenuBar.processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)
检查所有子菜单的子类。
|
protected boolean |
JComponent.processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)
调用过程的关键
ks 绑定的
KeyEvent
e 结果。
|
protected boolean |
JTable.processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed) |
void |
InputMap.put(KeyStroke keyStroke, Object actionMapKey)
添加一个绑定到
actionMapKey
keyStroke 。
|
void |
ComponentInputMap.put(KeyStroke keyStroke, Object actionMapKey)
添加一个绑定到
actionMapKey
keyStroke 。
|
void |
JComponent.registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition)
这种方法已经过时了,对于类似的行为,请使用组合
getActionMap() 和
getInputMap() 。
|
void |
JComponent.registerKeyboardAction(ActionListener anAction, String aCommand, KeyStroke aKeyStroke, int aCondition)
这种方法已经过时了,对于类似的行为,请使用组合
getActionMap() 和
getInputMap() 。
|
void |
InputMap.remove(KeyStroke key)
删除绑定从这
InputMap
key 。
|
void |
ComponentInputMap.remove(KeyStroke key)
删除绑定,从这个对象
key 。
|
void |
JMenu.setAccelerator(KeyStroke keyStroke)
setAccelerator 无定义
JMenu 。
|
void |
JMenuItem.setAccelerator(KeyStroke keyStroke)
设置调用菜单项的操作侦听器的键组合,而不在菜单层次结构中导航。
|
void |
JComponent.unregisterKeyboardAction(KeyStroke aKeyStroke)
这种方法现在已经过时了。
|
Modifier and Type | Field and Description |
---|---|
protected KeyStroke |
BasicDesktopPaneUI.closeKey
过时的。
截至1.3。
|
protected KeyStroke |
BasicSplitPaneUI.dividerResizeToggleKey
过时的。
作为java 2平台V1.3。
|
protected KeyStroke |
BasicSplitPaneUI.downKey
过时的。
作为java 2平台V1.3。
|
protected KeyStroke |
BasicToolBarUI.downKey
过时的。
作为java 2平台V1.3。
|
protected KeyStroke |
BasicTabbedPaneUI.downKey
过时的。
作为java 2平台V1.3。
|
protected KeyStroke |
BasicSplitPaneUI.endKey
过时的。
作为java 2平台V1.3。
|
protected KeyStroke |
BasicSplitPaneUI.homeKey
过时的。
作为java 2平台V1.3。
|
protected KeyStroke |
BasicSplitPaneUI.leftKey
过时的。
作为java 2平台V1.3。
|
protected KeyStroke |
BasicToolBarUI.leftKey
过时的。
作为java 2平台V1.3。
|
protected KeyStroke |
BasicTabbedPaneUI.leftKey
过时的。
作为java 2平台V1.3。
|
protected KeyStroke |
BasicDesktopPaneUI.maximizeKey
过时的。
截至1.3。
|
protected KeyStroke |
BasicDesktopPaneUI.minimizeKey
过时的。
截至1.3。
|
protected KeyStroke |
BasicDesktopPaneUI.navigateKey
过时的。
截至1.3。
|
protected KeyStroke |
BasicDesktopPaneUI.navigateKey2
过时的。
截至1.3。
|
protected KeyStroke |
BasicInternalFrameUI.openMenuKey
过时的。
作为java 2平台V1.3。
|
protected KeyStroke |
BasicSplitPaneUI.rightKey
过时的。
作为java 2平台V1.3。
|
protected KeyStroke |
BasicToolBarUI.rightKey
过时的。
作为java 2平台V1.3。
|
protected KeyStroke |
BasicTabbedPaneUI.rightKey
过时的。
作为java 2平台V1.3。
|
protected KeyStroke |
BasicSplitPaneUI.upKey
过时的。
作为java 2平台V1.3。
|
protected KeyStroke |
BasicToolBarUI.upKey
过时的。
作为java 2平台V1.3。
|
protected KeyStroke |
BasicTabbedPaneUI.upKey
过时的。
作为java 2平台V1.3。
|
Modifier and Type | Field and Description |
---|---|
KeyStroke |
JTextComponent.KeyBinding.key
的关键。
|
Modifier and Type | Method and Description |
---|---|
KeyStroke[] |
Keymap.getBoundKeyStrokes()
获取所有的在这张Map上,一定会有些动作按键。
|
KeyStroke[] |
Keymap.getKeyStrokesForAction(Action a)
获取键盘输入,将导致特定动作。
|
Modifier and Type | Method and Description |
---|---|
void |
Keymap.addActionForKeyStroke(KeyStroke key, Action a)
添加一个绑定的键盘布局。
|
Action |
Keymap.getAction(KeyStroke key)
取行动适当的象征性的事件序列。
|
boolean |
Keymap.isLocallyDefined(KeyStroke key)
确定给定的密钥序列是否在本地定义的。
|
void |
Keymap.removeKeyStrokeBinding(KeyStroke keys)
移除绑定的键盘布局。
|
Constructor and Description |
---|
KeyBinding(KeyStroke key, String actionName)
创建一个新的密钥绑定。
|
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.