public interface ItemListener extends EventListener
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.