All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.java.swing.ListModel

public interface ListModel

Method Index

 o addListDataListener(ListDataListener)
Add a listener to the list that's notified each time a change to the data model occurs.
 o getElementAt(int)
Returns the value at the specified index.
 o getSize()
Returns the length of the list.
 o removeListDataListener(ListDataListener)
Remove a listener from the list that's notified each time a change to the data model occurs.

Methods

 o getSize
 public abstract int getSize()
Returns the length of the list.

 o getElementAt
 public abstract Object getElementAt(int index)
Returns the value at the specified index.

 o 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
 o 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index