E
-这个模型的元素类型
public interface ListModel<E>
JList
Modifier and Type | Method and Description |
---|---|
void |
addListDataListener(ListDataListener l)
向列表中添加一个侦听器,在每次更改数据模型时都会通知该列表。
|
E |
getElementAt(int index)
返回指定索引处的值。
|
int |
getSize()
返回列表的长度。
|
void |
removeListDataListener(ListDataListener l)
从所通知的列表中移除一个在每次发生更改时通知的列表的侦听器。
|
int getSize()
E getElementAt(int index)
index
-请求的索引
index
价值
void addListDataListener(ListDataListener l)
l
-
ListDataListener
加以补充
void removeListDataListener(ListDataListener l)
l
-
ListDataListener
被删除
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.