- java.lang.Object
 -  
      
- java.awt.event.KeyAdapter
 -  
        
- javax.swing.plaf.basic.BasicTreeUI.KeyHandler
 
 
 
-  
       
- All Implemented Interfaces:
 -  
         
KeyListener,EventListener 
- Enclosing class:
 - BasicTreeUI
 
public class BasicTreeUI.KeyHandler extends KeyAdapter
这用于获取多个关键事件以适当地生成事件。 
-  
        
       
-  
             
Field Summary
Fields Modifier and Type Field 描述 protected booleanisKeyDownkeyPressed处于活动状态时设置为true。protected ActionrepeatKeyAction正在生成的关键代码。 
-  
             
构造方法摘要
构造方法 Constructor 描述 KeyHandler() 
 -  
             
 
-  
        
       
-  
             
字段详细信息
-  
repeatKeyAction
protected Action repeatKeyAction
正在生成的关键代码。 
-  
isKeyDown
protected boolean isKeyDown
keyPressed处于活动状态时设置为true。 
 -  
 
-  
             
方法详细信息
-  
keyTyped
public void keyTyped(KeyEvent e)
键入键时调用。 将键盘焦点移动到第一个元素,其第一个字母与用户按下的字母数字键匹配。 随后相同的按键将键盘焦点移动到以相同字母开始的下一个对象。- Specified by:
 -  
              
keyTyped在接口KeyListener - 重写:
 -  
              
keyTyped在KeyAdapter - 参数
 -  
              
e- 要处理的事件 
 
-  
keyPressed
public void keyPressed(KeyEvent e)
说明从类别复制:KeyAdapter按下键时调用。- Specified by:
 -  
              
keyPressed在接口KeyListener - 重写:
 -  
              
keyPressed在KeyAdapter - 参数
 -  
              
e- 要处理的事件 
 
-  
keyReleased
public void keyReleased(KeyEvent e)
描述从类复制:KeyAdapter当键已被释放时调用。- Specified by:
 -  
              
keyReleased在接口KeyListener - 重写:
 -  
              
keyReleased在KeyAdapter - 参数
 -  
              
e- 要处理的事件 
 
 -  
 
 -