javax.swing.plaf.basic

Class BasicListUI.ListDataHandler

public class BasicListUI.ListDataHandler extends Object implements ListDataListener

A helper class which listens for {@link ListDataEvent}s generated by the {@link JList}'s {@link ListModel}.

See Also: getModel

Method Summary
voidcontentsChanged(ListDataEvent e)
Called when a general change has happened in the model which cannot be represented in terms of a simple addition or deletion.
voidintervalAdded(ListDataEvent e)
Called when an interval of objects has been added to the model.
voidintervalRemoved(ListDataEvent e)
Called when an inteval of objects has been removed from the model.

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.

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.

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.

Parameters: e The event representing the removal