public class BasicTreeUI.KeyHandler extends KeyAdapter
| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | isKeyDown
              keyPressed处于活动状态时设置为true。 
             | 
| 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.