public interface ItemSelectable
| Modifier and Type | Method and Description |
|---|---|
void |
addItemListener(ItemListener l)
当用户更改项目的状态时,添加监听器以接收项目事件。
|
Object[] |
getSelectedObjects()
如果没有选择项目,则返回所选项目或
null 。
|
void |
removeItemListener(ItemListener l)
删除项目侦听器。
|
Object[] getSelectedObjects()
null 。
void addItemListener(ItemListener l)
l为null ,则不抛出异常,不执行任何操作。
l - 接收事件的侦听器
ItemEvent
void removeItemListener(ItemListener l)
l是null ,则抛出异常并且不执行任何操作。
l - 被删除的侦听器
ItemEvent
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.