Uses of Class
java.awt.event.KeyEvent
-
Packages that use KeyEvent 软件包 描述 java.awt 包含用于创建用户界面和绘制图形和图像的所有类。java.awt.event 提供用于处理AWT组件触发的不同类型事件的接口和类。javax.swing 提供一组“轻量级”(全Java语言)组件,这些组件在所有平台上尽可能地工作。javax.swing.event 提供由Swing组件触发的事件。javax.swing.plaf 提供一个接口和许多抽象类,Swing使用它们来提供其可插入的外观功能。javax.swing.plaf.basic 提供根据Basic外观构建的用户界面对象。 -
-
Uses of KeyEvent in java.awt
Methods in java.awt with parameters of type KeyEvent 变量和类型 方法 描述 boolean
DefaultKeyboardFocusManager. dispatchKeyEvent(KeyEvent e)
如果调度程序链中没有其他KeyEventDispatcher调度KeyEvent,或者没有注册其他KeyEventDispatcher,则由dispatchEvent
调用。abstract boolean
KeyboardFocusManager. dispatchKeyEvent(KeyEvent e)
通常,如果调度程序链中没有其他KeyEventDispatcher调度KeyEvent,或者没有注册其他KeyEventDispatcher,则此方法将由dispatchEvent
调用。boolean
KeyEventDispatcher. dispatchKeyEvent(KeyEvent e)
当前的KeyboardFocusManager调用此方法,请求此KeyEventDispatcher代表它调度指定的事件。static AWTKeyStroke
AWTKeyStroke. getAWTKeyStrokeForEvent(KeyEvent anEvent)
返回AWTKeyStroke
,表示生成给定KeyEvent
。void
AWTEventMulticaster. keyPressed(KeyEvent e)
通过在侦听器-a和侦听器-b上调用keyPressed方法处理keyPressed事件。void
AWTEventMulticaster. keyReleased(KeyEvent e)
通过在侦听器-a和侦听器-b上调用keyReleased方法处理keyReleased事件。void
AWTEventMulticaster. keyTyped(KeyEvent e)
通过在侦听器-a和侦听器-b上调用keyTyped方法来处理keyTyped事件。boolean
DefaultKeyboardFocusManager. postProcessKeyEvent(KeyEvent e)
该方法将由dispatchKeyEvent
。abstract boolean
KeyboardFocusManager. postProcessKeyEvent(KeyEvent e)
该方法将由dispatchKeyEvent
。boolean
KeyEventPostProcessor. postProcessKeyEvent(KeyEvent e)
当前的KeyboardFocusManager调用此方法,请求此KeyEventPostProcessor执行任何必要的后处理,这应该是KeyEvent最终解析的一部分。protected void
Component. processKeyEvent(KeyEvent e)
处理在此组件上发生的关键事件,方法是将它们分派给任何已注册的KeyListener
对象。void
DefaultKeyboardFocusManager. processKeyEvent(Component focusedComponent, KeyEvent e)
当且仅当KeyEvent表示指定的focusedComponent的焦点遍历键时,此方法才启动焦点遍历操作。abstract void
KeyboardFocusManager. processKeyEvent(Component focusedComponent, KeyEvent e)
当且仅当KeyEvent表示指定的focusedComponent的焦点遍历键时,此方法才启动焦点遍历操作。 -
Uses of KeyEvent in java.awt.event
Methods in java.awt.event with parameters of type KeyEvent 变量和类型 方法 描述 void
KeyAdapter. keyPressed(KeyEvent e)
按下某个键时调用。void
KeyListener. keyPressed(KeyEvent e)
按下某个键时调用。void
KeyAdapter. keyReleased(KeyEvent e)
释放密钥时调用。void
KeyListener. keyReleased(KeyEvent e)
释放密钥时调用。void
KeyAdapter. keyTyped(KeyEvent e)
键入键时调用。void
KeyListener. keyTyped(KeyEvent e)
键入键时调用。 -
Uses of KeyEvent in javax.swing
Methods in javax.swing with parameters of type KeyEvent 变量和类型 方法 描述 static KeyStroke
KeyStroke. getKeyStrokeForEvent(KeyEvent anEvent)
返回KeyStroke,它表示生成给定KeyEvent的笔划。static boolean
SwingUtilities. notifyAction(Action action, KeyStroke ks, KeyEvent event, Object sender, int modifiers)
调用actionPerformed
上action
如果action
是非null
并接受发送对象。protected void
JComponent. processComponentKeyEvent(KeyEvent e)
处理组件本身可识别的任何关键事件。protected boolean
JComponent. processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)
作为KeyEvent
e
的结果,调用以处理ks
的键绑定。protected boolean
JMenuBar. processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)
Subclassed检查所有儿童菜单。static boolean
SwingUtilities. processKeyBindings(KeyEvent event)
处理用于在所述键绑定Component
关联event
。void
JComboBox. processKeyEvent(KeyEvent e)
处理KeyEvent
s,寻找Tab键。protected void
JComponent. processKeyEvent(KeyEvent e)
覆盖processKeyEvent
以处理事件。protected void
JMenu. processKeyEvent(KeyEvent evt)
处理关键笔划事件,例如助记符和加速器。void
JMenuBar. processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager)
实施为MenuElement
- 什么都不做。void
JMenuItem. processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager)
处理从MenuSelectionManager
转发的键事件,并根据需要使用MenuSelectionManager
的API更改菜单选择。protected void
JPopupMenu. processKeyEvent(KeyEvent evt)
处理关键笔划事件,例如助记符和加速器。void
JPopupMenu. processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager)
处理从MenuSelectionManager
转发的键事件,并根据需要使用MenuSelectionManager
的API更改菜单选项。void
MenuElement. processKeyEvent(KeyEvent event, MenuElement[] path, MenuSelectionManager manager)
处理重要事件。void
MenuSelectionManager. processKeyEvent(KeyEvent e)
当MenuElement从KeyListener接收事件时,它永远不应该直接处理事件。 -
Uses of KeyEvent in javax.swing.event
Subclasses of KeyEvent in javax.swing.event 变量和类型 类 描述 class
MenuKeyEvent
MenuKeyEvent用于通知感兴趣的各方菜单元素已在菜单树中收到转发给它的KeyEvent。 -
Uses of KeyEvent in javax.swing.plaf
Methods in javax.swing.plaf with parameters of type KeyEvent 变量和类型 方法 描述 protected void
LayerUI. processKeyEvent(KeyEvent e, JLayer<? extends V> l)
处理JLayer
或其任何子组件上发生的关键事件。 -
Uses of KeyEvent in javax.swing.plaf.basic
Methods in javax.swing.plaf.basic with parameters of type KeyEvent 变量和类型 方法 描述 void
BasicTreeUI.KeyHandler. keyTyped(KeyEvent e)
Invoked when a key has been typed.
-