javax.swing.plaf.basic
public class: BasicTreeUI.KeyHandler [javadoc |
source]
java.lang.Object
java.awt.event.KeyAdapter
javax.swing.plaf.basic.BasicTreeUI$KeyHandler
All Implemented Interfaces:
KeyListener
This is used to get mutliple key down events to appropriately generate
events.
| Field Summary |
|---|
| protected Action | repeatKeyAction | Key code that is being generated for. |
| protected boolean | isKeyDown | Set to true while keyPressed is active. |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from javax.swing.plaf.basic.BasicTreeUI$KeyHandler Detail: |
public void keyPressed(KeyEvent e) {
getHandler().keyPressed(e);
}
|
public void keyReleased(KeyEvent e) {
getHandler().keyReleased(e);
}
|
public void keyTyped(KeyEvent e) {
getHandler().keyTyped(e);
}
Invoked when a key has been typed.
Moves the keyboard focus to the first element
whose first letter matches the alphanumeric key
pressed by the user. Subsequent same key presses
move the keyboard focus to the next object that
starts with the same letter. |