javax.swing.event
Interface ListDataListener

All Superinterfaces:
EventListener sample code for java.util.EventListener definition code for java.util.EventListener
All Known Implementing Classes:
BasicComboBoxUI.ListDataHandler sample code for javax.swing.plaf.basic.BasicComboBoxUI.ListDataHandler definition code for javax.swing.plaf.basic.BasicComboBoxUI.ListDataHandler , BasicComboPopup.ListDataHandler sample code for javax.swing.plaf.basic.BasicComboPopup.ListDataHandler definition code for javax.swing.plaf.basic.BasicComboPopup.ListDataHandler , BasicListUI.ListDataHandler sample code for javax.swing.plaf.basic.BasicListUI.ListDataHandler definition code for javax.swing.plaf.basic.BasicListUI.ListDataHandler , JComboBox sample code for javax.swing.JComboBox definition code for javax.swing.JComboBox , JList.AccessibleJList sample code for javax.swing.JList.AccessibleJList definition code for javax.swing.JList.AccessibleJList

public interface ListDataListener
extends EventListener sample code for java.util.EventListener definition code for java.util.EventListener

ListDataListener


Method Summary
 void contentsChanged sample code for javax.swing.event.ListDataListener.contentsChanged(javax.swing.event.ListDataEvent) definition code for javax.swing.event.ListDataListener.contentsChanged(javax.swing.event.ListDataEvent) (ListDataEvent sample code for javax.swing.event.ListDataEvent definition code for javax.swing.event.ListDataEvent  e)
          Sent when the contents of the list has changed in a way that's too complex to characterize with the previous methods.
 void intervalAdded sample code for javax.swing.event.ListDataListener.intervalAdded(javax.swing.event.ListDataEvent) definition code for javax.swing.event.ListDataListener.intervalAdded(javax.swing.event.ListDataEvent) (ListDataEvent sample code for javax.swing.event.ListDataEvent definition code for javax.swing.event.ListDataEvent  e)
          Sent after the indices in the index0,index1 interval have been inserted in the data model.
 void intervalRemoved sample code for javax.swing.event.ListDataListener.intervalRemoved(javax.swing.event.ListDataEvent) definition code for javax.swing.event.ListDataListener.intervalRemoved(javax.swing.event.ListDataEvent) (ListDataEvent sample code for javax.swing.event.ListDataEvent definition code for javax.swing.event.ListDataEvent  e)
          Sent after the indices in the index0,index1 interval have been removed from the data model.
 

Method Detail

intervalAdded sample code for javax.swing.event.ListDataListener.intervalAdded(javax.swing.event.ListDataEvent) definition code for javax.swing.event.ListDataListener.intervalAdded(javax.swing.event.ListDataEvent)

void intervalAdded(ListDataEvent sample code for javax.swing.event.ListDataEvent definition code for javax.swing.event.ListDataEvent  e)
Sent after the indices in the index0,index1 interval have been inserted in the data model. The new interval includes both index0 and index1.

Parameters:
e - a ListDataEvent encapsulating the event information

intervalRemoved sample code for javax.swing.event.ListDataListener.intervalRemoved(javax.swing.event.ListDataEvent) definition code for javax.swing.event.ListDataListener.intervalRemoved(javax.swing.event.ListDataEvent)

void intervalRemoved(ListDataEvent sample code for javax.swing.event.ListDataEvent definition code for javax.swing.event.ListDataEvent  e)
Sent after the indices in the index0,index1 interval have been removed from the data model. The interval includes both index0 and index1.

Parameters:
e - a ListDataEvent encapsulating the event information

contentsChanged sample code for javax.swing.event.ListDataListener.contentsChanged(javax.swing.event.ListDataEvent) definition code for javax.swing.event.ListDataListener.contentsChanged(javax.swing.event.ListDataEvent)

void contentsChanged(ListDataEvent sample code for javax.swing.event.ListDataEvent definition code for javax.swing.event.ListDataEvent  e)
Sent when the contents of the list has changed in a way that's too complex to characterize with the previous methods. For example, this is sent when an item has been replaced. Index0 and index1 bracket the change.

Parameters:
e - a ListDataEvent encapsulating the event information