
package uk.co.wingpath.event;

import javax.swing.event.*;

/**
* This abstract class implements the ListDataListener by calling a single
* method (listChanged) for any change to the list.
*/
public abstract class ListListener
    implements ListDataListener
{
    /**
    * Constructs a ListListener.
    */
    public ListListener ()
    {
    }

    public abstract void listChanged (ListDataEvent e);

    public void intervalAdded (ListDataEvent e)
    {
        listChanged (e);
    }

    public void intervalRemoved (ListDataEvent e)
    {
        listChanged (e);
    }

    public void contentsChanged (ListDataEvent e)
    {
        listChanged (e);
    }
}

