javax.swing.plaf.basic
Class BasicListUI.ListDataHandler

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.plaf.basic.BasicListUI.ListDataHandler
All Implemented Interfaces:
EventListener sample code for java.util.EventListener definition code for java.util.EventListener , ListDataListener sample code for javax.swing.event.ListDataListener definition code for javax.swing.event.ListDataListener
Enclosing class:
BasicListUI sample code for javax.swing.plaf.basic.BasicListUI definition code for javax.swing.plaf.basic.BasicListUI

public class BasicListUI.ListDataHandler
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements ListDataListener sample code for javax.swing.event.ListDataListener definition code for javax.swing.event.ListDataListener

The ListDataListener that's added to the JLists model at installUI time, and whenever the JList.model property changes.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder sample code for java.beans.XMLEncoder definition code for java.beans.XMLEncoder .

See Also:
JList.getModel() sample code for javax.swing.JList.getModel() definition code for javax.swing.JList.getModel() , BasicListUI.maybeUpdateLayoutState() sample code for javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState() definition code for javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState() , BasicListUI.createListDataListener() sample code for javax.swing.plaf.basic.BasicListUI.createListDataListener() definition code for javax.swing.plaf.basic.BasicListUI.createListDataListener() , BasicListUI.installUI(javax.swing.JComponent) sample code for javax.swing.plaf.basic.BasicListUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicListUI.installUI(javax.swing.JComponent)

Constructor Summary
BasicListUI.ListDataHandler sample code for javax.swing.plaf.basic.BasicListUI.ListDataHandler.BasicListUI.ListDataHandler() definition code for javax.swing.plaf.basic.BasicListUI.ListDataHandler.BasicListUI.ListDataHandler() ()
           
 
Method Summary
 void contentsChanged sample code for javax.swing.plaf.basic.BasicListUI.ListDataHandler.contentsChanged(javax.swing.event.ListDataEvent) definition code for javax.swing.plaf.basic.BasicListUI.ListDataHandler.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.plaf.basic.BasicListUI.ListDataHandler.intervalAdded(javax.swing.event.ListDataEvent) definition code for javax.swing.plaf.basic.BasicListUI.ListDataHandler.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.plaf.basic.BasicListUI.ListDataHandler.intervalRemoved(javax.swing.event.ListDataEvent) definition code for javax.swing.plaf.basic.BasicListUI.ListDataHandler.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.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

BasicListUI.ListDataHandler sample code for javax.swing.plaf.basic.BasicListUI.ListDataHandler() definition code for javax.swing.plaf.basic.BasicListUI.ListDataHandler()

public BasicListUI.ListDataHandler()
Method Detail

intervalAdded sample code for javax.swing.plaf.basic.BasicListUI.ListDataHandler.intervalAdded(javax.swing.event.ListDataEvent) definition code for javax.swing.plaf.basic.BasicListUI.ListDataHandler.intervalAdded(javax.swing.event.ListDataEvent)

public void intervalAdded(ListDataEvent sample code for javax.swing.event.ListDataEvent definition code for javax.swing.event.ListDataEvent  e)
Description copied from interface: ListDataListener sample code for javax.swing.event.ListDataListener.intervalAdded(javax.swing.event.ListDataEvent) definition code for javax.swing.event.ListDataListener.intervalAdded(javax.swing.event.ListDataEvent)
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 sample code for javax.swing.event.ListDataListener.intervalAdded(javax.swing.event.ListDataEvent) definition code for javax.swing.event.ListDataListener.intervalAdded(javax.swing.event.ListDataEvent) in interface ListDataListener sample code for javax.swing.event.ListDataListener definition code for javax.swing.event.ListDataListener
Parameters:
e - a ListDataEvent encapsulating the event information

intervalRemoved sample code for javax.swing.plaf.basic.BasicListUI.ListDataHandler.intervalRemoved(javax.swing.event.ListDataEvent) definition code for javax.swing.plaf.basic.BasicListUI.ListDataHandler.intervalRemoved(javax.swing.event.ListDataEvent)

public void intervalRemoved(ListDataEvent sample code for javax.swing.event.ListDataEvent definition code for javax.swing.event.ListDataEvent  e)
Description copied from interface: ListDataListener sample code for javax.swing.event.ListDataListener.intervalRemoved(javax.swing.event.ListDataEvent) definition code for javax.swing.event.ListDataListener.intervalRemoved(javax.swing.event.ListDataEvent)
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 sample code for javax.swing.event.ListDataListener.intervalRemoved(javax.swing.event.ListDataEvent) definition code for javax.swing.event.ListDataListener.intervalRemoved(javax.swing.event.ListDataEvent) in interface ListDataListener sample code for javax.swing.event.ListDataListener definition code for javax.swing.event.ListDataListener
Parameters:
e - a ListDataEvent encapsulating the event information

contentsChanged sample code for javax.swing.plaf.basic.BasicListUI.ListDataHandler.contentsChanged(javax.swing.event.ListDataEvent) definition code for javax.swing.plaf.basic.BasicListUI.ListDataHandler.contentsChanged(javax.swing.event.ListDataEvent)

public void contentsChanged(ListDataEvent sample code for javax.swing.event.ListDataEvent definition code for javax.swing.event.ListDataEvent  e)
Description copied from interface: ListDataListener sample code for javax.swing.event.ListDataListener.contentsChanged(javax.swing.event.ListDataEvent) definition code for javax.swing.event.ListDataListener.contentsChanged(javax.swing.event.ListDataEvent)
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 sample code for javax.swing.event.ListDataListener.contentsChanged(javax.swing.event.ListDataEvent) definition code for javax.swing.event.ListDataListener.contentsChanged(javax.swing.event.ListDataEvent) in interface ListDataListener sample code for javax.swing.event.ListDataListener definition code for javax.swing.event.ListDataListener
Parameters:
e - a ListDataEvent encapsulating the event information