public class BasicTreeUI.KeyHandler extends KeyAdapter
Modifier and Type | Field and Description |
---|---|
protected boolean |
isKeyDown
Set to true while keyPressed is active.
|
protected Action |
repeatKeyAction
Key code that is being generated for.
|
Constructor and Description |
---|
KeyHandler() |
Modifier and Type | Method and Description |
---|---|
void |
keyPressed(KeyEvent e)
Invoked when a key has been pressed.
|
void |
keyReleased(KeyEvent e)
Invoked when a key has been released.
|
void |
keyTyped(KeyEvent e)
Invoked when a key has been typed.
|
protected Action repeatKeyAction
protected boolean isKeyDown
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
keyTyped
in class KeyAdapter
public void keyPressed(KeyEvent e)
KeyAdapter
keyPressed
in interface KeyListener
keyPressed
in class KeyAdapter
public void keyReleased(KeyEvent e)
KeyAdapter
keyReleased
in interface KeyListener
keyReleased
in class 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.