de.tkuhn.swing.event
Class ListDataAdapter

java.lang.Object
  extended by de.tkuhn.swing.event.ListDataAdapter
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.ListDataListener

public class ListDataAdapter
extends java.lang.Object
implements javax.swing.event.ListDataListener

This Class provides a default implementation of ListDataListener with empty implementation methods.

Version:
0.9.3
Author:
Tilmann Kuhn
See Also:
ListDataListener

Constructor Summary
ListDataAdapter()
          Creates a new instance of ListDataAdapter
 
Method Summary
 void contentsChanged(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(javax.swing.event.ListDataEvent e)
          Sent after the indices in the index0,index1 interval have been inserted in the data model.
 void intervalRemoved(javax.swing.event.ListDataEvent e)
          Sent after the indices in the index0,index1 interval have been removed from the data model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListDataAdapter

public ListDataAdapter()
Creates a new instance of ListDataAdapter

Method Detail

contentsChanged

public void contentsChanged(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.

Specified by:
contentsChanged in interface javax.swing.event.ListDataListener
Parameters:
e - a ListDataEvent encapsulating the event information

intervalAdded

public void intervalAdded(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.

Specified by:
intervalAdded in interface javax.swing.event.ListDataListener
Parameters:
e - a ListDataEvent encapsulating the event information

intervalRemoved

public void intervalRemoved(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.

Specified by:
intervalRemoved in interface javax.swing.event.ListDataListener
Parameters:
e - a ListDataEvent encapsulating the event information


Copyright © Tilmann Kuhn