javax.swing.event
Interface ListDataListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
BasicComboBoxUI.ListDataHandler, BasicComboPopup.ListDataHandler, BasicListUI.ListDataHandler, JComboBox, JList.AccessibleJList

public interface ListDataListener
extends EventListener

A ListDataListener can register with a ListModel and receive notification of updates to the model.


Method Summary
 void contentsChanged(ListDataEvent event)
          Notifies the listener that the contents of the list have changed in some way.
 void intervalAdded(ListDataEvent event)
          Notifies the listener that one or more items have been added to the list.
 void intervalRemoved(ListDataEvent event)
          Notifies the listener that one or more items have been removed from the list.
 

Method Detail

contentsChanged

void contentsChanged(ListDataEvent event)
Notifies the listener that the contents of the list have changed in some way. This method will be called if the change cannot be notified via the intervalAdded(ListDataEvent) or the intervalRemoved(ListDataEvent) methods.

Parameters:
event - the event.

intervalAdded

void intervalAdded(ListDataEvent event)
Notifies the listener that one or more items have been added to the list. The event argument can supply the indices for the range of items added.

Parameters:
event - the event.

intervalRemoved

void intervalRemoved(ListDataEvent event)
Notifies the listener that one or more items have been removed from the list. The event argument can supply the indices for the range of items removed.

Parameters:
event - the event.