E - the type of the elements of this model
public interface ListModel<E>
JList
| Modifier and Type | Method and Description |
|---|---|
void |
addListDataListener(ListDataListener
Adds a listener to the list that's notified each time a change to the data model occurs.
|
E |
getElementAt(int index)
Returns the value at the specified index.
|
int |
getSize()
Returns the length of the list.
|
void |
removeListDataListener(ListDataListener
Removes a listener from the list that's notified each time a change to the data model occurs.
|
int getSize()
E getElementAt(int index)
index - the requested index
index
void addListDataListener(ListDataListenerl)
l - the
ListDataListener to be added
void removeListDataListener(ListDataListenerl)
l - the
ListDataListener to be removed