JavaTM Platform
Standard Ed. 6

javax.swing.plaf.basic
类 BasicTableUI.KeyHandler

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

public class BasicTableUI.KeyHandler
     
extends Object
implements KeyListener

此内部类因编译器故障而被标记为“公开”。此类应该视为“受保护”内部类。仅在 BasicTableUI 的子类中实例化此类。

从 Java 2 平台 v1.3 开始,不再使用此类。转而通过 JTable 重写 processKeyBinding 将事件指派给当前的 TableCellEditor


构造方法摘要
BasicTableUI.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
 

构造方法详细信息

BasicTableUI.KeyHandler

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

keyPressed

public void keyPressed(KeyEvent e)
从接口 KeyListener 复制的描述
按下某个键时调用此方法。有关按下键事件的定义,请参见 KeyEvent 的类描述。

指定者:
接口 KeyListener 中的 keyPressed

keyReleased

public void keyReleased(KeyEvent e)
从接口 KeyListener 复制的描述
释放某个键时调用此方法。有关释放键事件的定义,请参见 KeyEvent 的类描述。

指定者:
接口 KeyListener 中的 keyReleased

keyTyped

public void keyTyped(KeyEvent e)
从接口 KeyListener 复制的描述
键入某个键时调用此方法。有关键入键事件的定义,请参见 KeyEvent 的类描述。

指定者:
接口 KeyListener 中的 keyTyped

JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策