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