This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing.plaf.basic
class BasicTreeUI.KeyHandler

java.lang.Object extended by java.awt.event.KeyAdapter extended by javax.swing.plaf.basic.BasicTreeUI.KeyHandler
All Implemented Interfaces:
KeyListener
Enclosing class:
BasicTreeUI

public class BasicTreeUI.KeyHandler
extends KeyAdapter

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


Field Summary
protected boolean isKeyDown
          Set to true while keyPressed is active.
protected Action repeatKeyAction
          Key code that is being generated for.
 
Constructor Summary

          
 
Method Summary
 void

          Invoked when a key has been pressed.
 void

          Invoked when a key has been released.
 void

          Invoked when a key has been typed.
 
Methods inherited from class java.awt.event.KeyAdapter
keyPressed, keyReleased, keyTyped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isKeyDown

protected boolean isKeyDown
Set to true while keyPressed is active.

repeatKeyAction

protected Action repeatKeyAction
Key code that is being generated for.
Constructor Detail

BasicTreeUI.KeyHandler

public BasicTreeUI.KeyHandler()
Method Detail

keyPressed

public void keyPressed(KeyEvent e)
Overrides:
keyPressed in class KeyAdapter
Parameters:
e

keyReleased

public void keyReleased(KeyEvent e)
Overrides:
keyReleased in class KeyAdapter
Parameters:
e

keyTyped

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.

Overrides:
keyTyped in class KeyAdapter
Parameters:
e


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.