1. /*
  2. * @(#)TableColumnModelListener.java 1.10 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 javax.swing.event.ListSelectionEvent;
  12. import javax.swing.event.ChangeEvent;
  13. import java.util.EventListener;
  14. /**
  15. * TableColumnModelListener defines the interface for an object that listens
  16. * to changes in a TableColumnModel.
  17. *
  18. * @version 1.10 02/02/00
  19. * @author Alan Chung
  20. * @see TableColumnModelEvent
  21. */
  22. public interface TableColumnModelListener extends java.util.EventListener
  23. {
  24. /** Tells listeners that a column was added to the model. */
  25. public void columnAdded(TableColumnModelEvent e);
  26. /** Tells listeners that a column was removed from the model. */
  27. public void columnRemoved(TableColumnModelEvent e);
  28. /** Tells listeners that a column was repositioned. */
  29. public void columnMoved(TableColumnModelEvent e);
  30. /** Tells listeners that a column was moved due to a margin change. */
  31. public void columnMarginChanged(ChangeEvent e);
  32. /**
  33. * Tells listeners that the selection model of the
  34. * TableColumnModel changed.
  35. */
  36. public void columnSelectionChanged(ListSelectionEvent e);
  37. }