javax.swing
public interface ListModel
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. |
Parameters: l The listener to add
Parameters: index The index of the element to retrieve
Returns: The data element at the specified index
Returns: The number of data elements in the list
Parameters: l The listener to remove