JavaTM 2 Platform
Standard Ed. 6

javax.swing.plaf.basic
类 BasicComboBoxUI.KeyHandler

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

public class BasicComboBoxUI.KeyHandler
extends KeyAdapter

此侦听器检查键事件是否不是导航键。如果它发现某个键事件不是导航键,则其将该键事件指派给 JComboBox.selectWithKeyChar(),让它执行提前输入操作。 此公开内部类应该视为受保护内部类。仅在 BasicComboBoxUI 的子类中实例化此类。


构造方法摘要
BasicComboBoxUI.KeyHandler()
           
 
方法摘要
 void keyPressed(KeyEvent e)
          按下某个键时调用此方法。
 
从类 java.awt.event.KeyAdapter 继承的方法
keyReleased, keyTyped
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

BasicComboBoxUI.KeyHandler

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

keyPressed

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

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

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

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