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