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.