KeyListener, EventListenerpublic class BasicTreeUI.KeyHandler extends KeyAdapter
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
isKeyDown |
Set to true while keyPressed is active.
|
protected Action |
repeatKeyAction |
Key code that is being generated for.
|
| Constructor | Description |
|---|---|
KeyHandler() |
| Modifier and Type | Method | 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 KeyListenerkeyTyped in class KeyAdaptere - the event to be processedpublic void keyPressed(KeyEvent e)
KeyAdapterkeyPressed in interface KeyListenerkeyPressed in class KeyAdaptere - the event to be processedpublic void keyReleased(KeyEvent e)
KeyAdapterkeyReleased in interface KeyListenerkeyReleased in class KeyAdaptere - the event to be processed 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, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b153-2