javax.swing.plaf.basic
类 BasicComboBoxUI.ItemHandler
java.lang.Object
javax.swing.plaf.basic.BasicComboBoxUI.ItemHandler
- 所有已实现的接口:
- ItemListener, EventListener
- 正在封闭类:
- BasicComboBoxUI
public class BasicComboBoxUI.ItemHandler
- extends Object
- implements ItemListener
此侦听器观察组合框中选择的更改。
此公开内部类应该视为受保护内部类。仅在 BasicComboBoxUI 的子类中实例化此类。
- 另请参见:
BasicComboBoxUI.createItemListener()
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicComboBoxUI.ItemHandler
public BasicComboBoxUI.ItemHandler()
itemStateChanged
public void itemStateChanged(ItemEvent e)
- 从接口
ItemListener 复制的描述
- 在用户已选定或取消选定某项时调用。为此方法编写的代码将执行需要在已选定(或已取消选定)项时发生的操作。
- 指定者:
- 接口
ItemListener 中的 itemStateChanged