public class

BasicTreeUI.KeyHandler

extends KeyAdapter
java.lang.Object
   ↳ java.awt.event.KeyAdapter
     ↳ javax.swing.plaf.basic.BasicTreeUI.KeyHandler

Class Overview

This is used to get mutliple key down events to appropriately generate events.

Summary

Fields
protected boolean isKeyDown Set to true while keyPressed is active.
protected Action repeatKeyAction Key code that is being generated for.
Public Constructors
BasicTreeUI.KeyHandler()
Public Methods
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.
[Expand]
Inherited Methods
From class java.awt.event.KeyAdapter
From class java.lang.Object
From interface java.awt.event.KeyListener

Fields

protected boolean isKeyDown

Set to true while keyPressed is active.

protected Action repeatKeyAction

Key code that is being generated for.

Public Constructors

public BasicTreeUI.KeyHandler ()

Public Methods

public void keyPressed (KeyEvent e)

Invoked when a key has been pressed.

public void keyReleased (KeyEvent e)

Invoked when a key has been released.

public void keyTyped (KeyEvent 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.