org.norvelle.textcite.gui.adapter
Class ListModelAdapterCollection

java.lang.Object
  extended by org.norvelle.textcite.gui.adapter.ListModelAdapterCollection

public class ListModelAdapterCollection
extends java.lang.Object

ListModelAdapterCollection Holds a set of ListModelAdapters, and handles sending events to all of them, as well as adding and removing them when necessary

Author:
Erik Norvelle

Constructor Summary
ListModelAdapterCollection(ListModelAdaptee adaptee)
           
 
Method Summary
 void addAdapter(ListModelChangeListener adapter)
           
 void fireContentsChanged(java.lang.Object sender, java.lang.Object data, int pos, int pos2)
          Just hand on the ContentsChanged signal to the JList that we're serving as the model for.
 void fireIntervalAdded(java.lang.Object sender, java.lang.Object data, int pos, int pos2)
          Just hand on the IntervalAdded signal to the JList that we're serving as the model for.
 void fireIntervalRemoved(java.lang.Object sender, java.lang.Object data, int pos, int pos2)
          Just hand on the IntervalRemoved signal to the JList that we're serving as the model for.
 void removeAdapter(ListModelChangeListener adapter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListModelAdapterCollection

public ListModelAdapterCollection(ListModelAdaptee adaptee)
Method Detail

addAdapter

public void addAdapter(ListModelChangeListener adapter)

removeAdapter

public void removeAdapter(ListModelChangeListener adapter)

fireContentsChanged

public void fireContentsChanged(java.lang.Object sender,
                                java.lang.Object data,
                                int pos,
                                int pos2)
Just hand on the ContentsChanged signal to the JList that we're serving as the model for.

Parameters:
data - the Object that has changed

fireIntervalRemoved

public void fireIntervalRemoved(java.lang.Object sender,
                                java.lang.Object data,
                                int pos,
                                int pos2)
Just hand on the IntervalRemoved signal to the JList that we're serving as the model for.

Parameters:
data - the Object that has been removed

fireIntervalAdded

public void fireIntervalAdded(java.lang.Object sender,
                              java.lang.Object data,
                              int pos,
                              int pos2)
Just hand on the IntervalAdded signal to the JList that we're serving as the model for.

Parameters:
data - The object that has been added