public interface ItemListener extends EventListener
addItemListener
方法向组件addItemListener
。
当项目选择事件发生时,调用侦听器对象的itemStateChanged
方法。
ItemSelectable
, ItemEvent
, Tutorial: Writing an Item Listener
Modifier and Type | Method and Description |
---|---|
void |
itemStateChanged(ItemEvent e)
当用户选择或取消选择项目时调用。
|
void itemStateChanged(ItemEvent e)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.