javax.swing.plaf.basic
Class BasicListUI.ListDataHandler

java.lang.Object
  extended by javax.swing.plaf.basic.BasicListUI.ListDataHandler
All Implemented Interfaces:
EventListener, ListDataListener
Enclosing class:
BasicListUI

public class BasicListUI.ListDataHandler
extends Object
implements ListDataListener

A helper class which listens for ListDataEvents generated by the JList's ListModel.

See Also:
JList.getModel()

Constructor Summary
BasicListUI.ListDataHandler()
           
 
Method Summary
 void contentsChanged(ListDataEvent e)
          Called when a general change has happened in the model which cannot be represented in terms of a simple addition or deletion.
 void intervalAdded(ListDataEvent e)
          Called when an interval of objects has been added to the model.
 void intervalRemoved(ListDataEvent e)
          Called when an inteval of objects has been removed from the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicListUI.ListDataHandler

public BasicListUI.ListDataHandler()
Method Detail

contentsChanged

public void contentsChanged(ListDataEvent e)
Called when a general change has happened in the model which cannot be represented in terms of a simple addition or deletion.

Specified by:
contentsChanged in interface ListDataListener
Parameters:
e - The event representing the change

intervalAdded

public void intervalAdded(ListDataEvent e)
Called when an interval of objects has been added to the model.

Specified by:
intervalAdded in interface ListDataListener
Parameters:
e - The event representing the addition

intervalRemoved

public void intervalRemoved(ListDataEvent e)
Called when an inteval of objects has been removed from the model.

Specified by:
intervalRemoved in interface ListDataListener
Parameters:
e - The event representing the removal