1 7 8 package javax.swing.table; 9 10 import java.util.Enumeration ; 11 import javax.swing.event.ChangeEvent ; 12 import javax.swing.event.*; 13 import javax.swing.*; 14 15 16 25 public interface TableColumnModel 26 { 27 31 40 public void addColumn(TableColumn aColumn); 41 42 52 public void removeColumn(TableColumn column); 53 54 69 public void moveColumn(int columnIndex, int newIndex); 70 71 79 public void setColumnMargin(int newMargin); 80 81 85 89 public int getColumnCount(); 90 91 95 public Enumeration <TableColumn > getColumns(); 96 97 111 public int getColumnIndex(Object columnIdentifier); 112 113 121 public TableColumn getColumn(int columnIndex); 122 123 127 public int getColumnMargin(); 128 129 151 public int getColumnIndexAtX(int xPosition); 152 153 157 public int getTotalColumnWidth(); 158 159 163 168 public void setColumnSelectionAllowed(boolean flag); 169 170 175 public boolean getColumnSelectionAllowed(); 176 177 182 public int[] getSelectedColumns(); 183 184 189 public int getSelectedColumnCount(); 190 191 197 public void setSelectionModel(ListSelectionModel newModel); 198 199 205 public ListSelectionModel getSelectionModel(); 206 207 211 216 public void addColumnModelListener(TableColumnModelListener x); 217 218 223 public void removeColumnModelListener(TableColumnModelListener x); 224 } 225 | Popular Tags |