JavaTM 2 Platform
Standard Ed. 6

javax.swing.plaf.basic
类 BasicTreeUI.KeyHandler

java.lang.Object
  继承者 java.awt.event.KeyAdapter
      继承者 javax.swing.plaf.basic.BasicTreeUI.KeyHandler
所有已实现的接口:
KeyListener, EventListener
正在封闭类:
BasicTreeUI

public class BasicTreeUI.KeyHandler
extends KeyAdapter

用于获取多个按键事件以适当生成事件。


字段摘要
protected  boolean isKeyDown
          keyPressed 处于激活状态时设置为 true。
protected  Action repeatKeyAction
          正在生成的键代码。
 
构造方法摘要
BasicTreeUI.KeyHandler()
           
 
方法摘要
 void keyPressed(KeyEvent e)
          按下某个键时调用此方法。
 void keyReleased(KeyEvent e)
          释放某个键时调用此方法。
 void keyTyped(KeyEvent e)
          键入键时调用。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

repeatKeyAction

protected Action repeatKeyAction
正在生成的键代码。


isKeyDown

protected boolean isKeyDown
keyPressed 处于激活状态时设置为 true。

构造方法详细信息

BasicTreeUI.KeyHandler

public BasicTreeUI.KeyHandler()
方法详细信息

keyTyped

public void keyTyped(KeyEvent e)
键入键时调用。 将键盘焦点移动到其第一个字母与用户按下的字母数字键相匹配的第一个元素。后续相同按键将键盘焦点移动到以该字母开头的下一个对象上。

指定者:
接口 KeyListener 中的 keyTyped
覆盖:
KeyAdapter 中的 keyTyped

keyPressed

public void keyPressed(KeyEvent e)
从类 KeyAdapter 复制的描述
按下某个键时调用此方法。

指定者:
接口 KeyListener 中的 keyPressed
覆盖:
KeyAdapter 中的 keyPressed

keyReleased

public void keyReleased(KeyEvent e)
从类 KeyAdapter 复制的描述
释放某个键时调用此方法。

指定者:
接口 KeyListener 中的 keyReleased
覆盖:
KeyAdapter 中的 keyReleased

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only