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