API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.table. TableColumnModel View Source
Author(s)
Alan Chung
Philip Milne
Since
Version
1.26 11/17/05
Serial
Hierarchy
 TableColumnModel
Subinterfaces
Description
public interface TableColumnModel
  Defines the requirements for a table column model object suitable for use with JTable.
See also:    DefaultTableColumnModel
Methods
Hide/Show inherited methods
public void addColumn (TableColumn aColumn)
  Appends aColumn to the end of the tableColumns array.
public void addColumnModelListener (TableColumnModelListener x)
  Adds a listener for table column model events.
public TableColumn getColumn (int columnIndex)
  Returns the TableColumn object for the column at columnIndex.
public int getColumnCount ()
  Returns the number of columns in the model.
public int getColumnIndex (Object columnIdentifier)
  Returns the index of the first column in the table whose identifier is equal to identifier, when compared using equals.
public int getColumnIndexAtX (int xPosition)
  Returns the index of the column that lies on the horizontal point, xPosition; or -1 if it lies outside the any of the column's bounds.
public int getColumnMargin ()
  Returns the width between the cells in each column.
public Enumeration<TableColumn> getColumns ()
  Returns an Enumeration of all the columns in the model.
public boolean getColumnSelectionAllowed ()
  Returns true if columns may be selected.
public int getSelectedColumnCount ()
  Returns the number of selected columns.
public int getSelectedColumns ()
  Returns an array of indicies of all selected columns.
public ListSelectionModel getSelectionModel ()
  Returns the current selection model.
public int getTotalColumnWidth ()
  Returns the total width of all the columns.
public void moveColumn (int columnIndex, int newIndex)
  Moves the column and its header at columnIndex to newIndex.
public void removeColumn (TableColumn column)
  Deletes the TableColumn column from the tableColumns array.
public void removeColumnModelListener (TableColumnModelListener x)
  Removes a listener for table column model events.
public void setColumnMargin (int newMargin)
  Sets the TableColumn's column margin to newMargin.
public void setColumnSelectionAllowed (boolean flag)
  Sets whether the columns in this model may be selected.
public void setSelectionModel (ListSelectionModel newModel)
  Sets the selection model.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar