public class BasicTreeUI.KeyHandler extends KeyAdapter
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isKeyDown
设置为true,而keyPressed活跃。
|
protected Action |
repeatKeyAction
正在生成的关键代码。
|
| Constructor and Description |
|---|
KeyHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
keyPressed(KeyEvent e)
当一个键被按下时调用。
|
void |
keyReleased(KeyEvent e)
当一个键被释放时调用。
|
void |
keyTyped(KeyEvent e)
当一个键被类型化时调用。
|
protected Action repeatKeyAction
protected boolean isKeyDown
public void keyTyped(KeyEvent e)
keyTyped 接口
KeyListener
keyTyped 方法重写,继承类
KeyAdapter
public void keyPressed(KeyEvent e)
KeyAdapter
keyPressed 接口
KeyListener
keyPressed 方法重写,继承类
KeyAdapter
public void keyReleased(KeyEvent e)
KeyAdapter
keyReleased 接口
KeyListener
keyReleased 方法重写,继承类
KeyAdapter
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.