1. /*
  2. * @(#)ListDataListener.java 1.8 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.swing.event;
  8. import java.util.EventListener;
  9. /**
  10. * ListDataListener
  11. *
  12. * @version 1.8 11/29/01
  13. * @author Hans Muller
  14. */
  15. public interface ListDataListener extends EventListener {
  16. /**
  17. * Sent after the indices in the index0,index1
  18. * interval have been inserted in the data model.
  19. * The new interval includes both index0 and index1.
  20. *
  21. * @param e a ListDataEvent encapuslating the event information
  22. */
  23. void intervalAdded(ListDataEvent e);
  24. /**
  25. * Sent after the indices in the index0,index1 interval
  26. * have been removed from the data model. The interval
  27. * includes both index0 and index1.
  28. *
  29. * @param e a ListDataEvent encapuslating the event information
  30. */
  31. void intervalRemoved(ListDataEvent e);
  32. /**
  33. * Sent when the contents of the list has changed in a way
  34. * that's too complex to characterize with the previous
  35. * methods. Index0 and index1 bracket the change.
  36. *
  37. * @param e a ListDataEvent encapuslating the event information
  38. */
  39. void contentsChanged(ListDataEvent e);
  40. }