Interface com.sun.java.swing.ListModel
- public interface ListModel
Method Index
- addListDataListener(ListDataListener)
- Add a listener to the list that's notified each time a change
to the data model occurs.
- getElementAt(int)
- Returns the value at the specified index.
- getSize()
-
Returns the length of the list.
- removeListDataListener(ListDataListener)
- Remove a listener from the list that's notified each time a
change to the data model occurs.
Methods
getSize
public abstract int getSize()
- Returns the length of the list.
getElementAt
public abstract Object getElementAt(int index)
- Returns the value at the specified index.
addListDataListener
public abstract void addListDataListener(ListDataListener l)
- Add a listener to the list that's notified each time a change
to the data model occurs.
- Parameters:
- l - the ListDataListener
removeListDataListener
public abstract void removeListDataListener(ListDataListener l)
- Remove a listener from the list that's notified each time a
change to the data model occurs.
- Parameters:
- l - the ListDataListener
