|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ListModel
The data model that is typically used in JList
.
Method Summary | |
---|---|
void |
addListDataListener(ListDataListener l)
Add a listener object to this model. |
Object |
getElementAt(int index)
Retrieves a data element at a specified index. |
int |
getSize()
Return the number of data elements in the list. |
void |
removeListDataListener(ListDataListener l)
Add a listener object to this model. |
Method Detail |
---|
int getSize()
Object getElementAt(int index)
index
- The index of the element to retrieve
void addListDataListener(ListDataListener l)
l
- The listener to addvoid removeListDataListener(ListDataListener l)
l
- The listener to remove
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |