Uses of Class
java.awt.event.KeyEvent
-
Packages that use KeyEvent 软件包 描述 java.awt 包含用于创建用户界面和绘制图形和图像的所有类。java.awt.event 提供用于处理AWT组件触发的不同类型事件的接口和类。javafx.embed.swing 提供一组在Swing应用程序中使用JavaFX的类。javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.event 提供Swing组件触发的事件。javax.swing.plaf 提供一个接口和许多抽象类,Swing用来提供其可插拔的外观和感觉功能。javax.swing.plaf.basic 提供根据“基本”外观构建的用户界面对象。 -
-
Uses of KeyEvent in java.awt
Methods in java.awt with parameters of type KeyEvent Modifier and Type 方法 描述 boolean
DefaultKeyboardFocusManager. dispatchKeyEvent(KeyEvent e)
调用dispatchEvent
如果调度程序链中的其他KeyEventDispatcher没有分派KeyEvent,或者没有其他的KeyEventDispatchers被注册。abstract boolean
KeyboardFocusManager. dispatchKeyEvent(KeyEvent e)
通常,如果调度程序链中没有其他的KeyEventDispatcher调度了KeyEvent,或者没有其他的KeyEventDispatchers被注册,通常这个方法将被调用dispatchEvent
。boolean
KeyEventDispatcher. dispatchKeyEvent(KeyEvent e)
此方法由当前的KeyboardFocusManager调用,请求此KeyEventDispatcher代表它分派指定的事件。static AWTKeyStroke
AWTKeyStroke. getAWTKeyStrokeForEvent(KeyEvent anEvent)
返回一个AWTKeyStroke
,表示生成给定的KeyEvent
。void
AWTEventMulticaster. keyPressed(KeyEvent e)
通过在listener-a和listener-b上调用keyPressed方法来处理keyPressed事件。void
AWTEventMulticaster. keyReleased(KeyEvent e)
通过调用listener-a和listener-b上的keyReleased方法来处理keyReleased事件。void
AWTEventMulticaster. keyTyped(KeyEvent e)
通过在listener-a和listener-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表示指定的focusComponent的焦点遍历键时,此方法启动焦点遍历操作。abstract void
KeyboardFocusManager. processKeyEvent(Component focusedComponent, KeyEvent e)
当且仅当KeyEvent表示指定的focusComponent的焦点遍历键时,此方法启动焦点遍历操作。 -
Uses of KeyEvent in java.awt.event
Methods in java.awt.event with parameters of type KeyEvent Modifier and Type 方法 描述 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 javafx.embed.swing
Methods in javafx.embed.swing with parameters of type KeyEvent Modifier and Type 方法 描述 protected void
JFXPanel. processKeyEvent(KeyEvent e)
覆盖Component.processKeyEvent(KeyEvent)
方法将键事件发送到附加到此JFXPanel
的JavaFX场景。 -
Uses of KeyEvent in javax.swing
Methods in javax.swing with parameters of type KeyEvent Modifier and Type 方法 描述 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
JComboBox. processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)
调用以处理键绑定为ks
作为的结果KeyEvent
e
。protected boolean
JComponent. processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)
调用处理密钥绑定ks
作为KeyEvent
e
的结果。protected boolean
JMenuBar. processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)
子类检查所有的子菜单。protected boolean
JTable. processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)
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 Modifier and Type Class 描述 class
MenuKeyEvent
MenuKeyEvent用于通知有关方菜单元素已经在菜单树中收到转发给它的KeyEvent。 -
Uses of KeyEvent in javax.swing.plaf
Methods in javax.swing.plaf with parameters of type KeyEvent Modifier and Type 方法 描述 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 Modifier and Type 方法 描述 void
BasicComboBoxUI.KeyHandler. keyPressed(KeyEvent e)
void
BasicTableUI.KeyHandler. keyPressed(KeyEvent e)
void
BasicTreeUI.KeyHandler. keyPressed(KeyEvent e)
void
BasicComboPopup.InvocationKeyHandler. keyReleased(KeyEvent e)
void
BasicTableUI.KeyHandler. keyReleased(KeyEvent e)
void
BasicTreeUI.KeyHandler. keyReleased(KeyEvent e)
void
BasicTableUI.KeyHandler. keyTyped(KeyEvent e)
void
BasicTreeUI.KeyHandler. keyTyped(KeyEvent e)
键入键时调用。
-