1. /*
  2. * @(#)ListDataListener.java 1.13 03/12/19
  3. *
  4. * Copyright 2004 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.13 12/19/03
  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 <code>ListDataEvent</code> encapsulating the
  22. * event information
  23. */
  24. void intervalAdded(ListDataEvent e);
  25. /**
  26. * Sent after the indices in the index0,index1 interval
  27. * have been removed from the data model. The interval
  28. * includes both index0 and index1.
  29. *
  30. * @param e a <code>ListDataEvent</code> encapsulating the
  31. * event information
  32. */
  33. void intervalRemoved(ListDataEvent e);
  34. /**
  35. * Sent when the contents of the list has changed in a way
  36. * that's too complex to characterize with the previous
  37. * methods. For example, this is sent when an item has been
  38. * replaced. Index0 and index1 bracket the change.
  39. *
  40. * @param e a <code>ListDataEvent</code> encapsulating the
  41. * event information
  42. */
  43. void contentsChanged(ListDataEvent e);
  44. }