swingx
Version 2005-08-19

org.jdesktop.swingx.table
Interface TableColumnModelExt

All Superinterfaces:
TableColumnModel
All Known Implementing Classes:
DefaultTableColumnModelExt

public interface TableColumnModelExt
extends TableColumnModel

An extension to the TableColumnModel that adds logic dealing with the "visibilty" property of the TableColumnExt. If a column is made invisible, then the ColumnModel must not return that column in subsequent calls to getColumnXXX. In other words, it is "silently" removed from the column model until it is again made visible. However, a change in the visibility status of a column will trigger an event so that the underlying JTable can repaint/relayout itself. The semantics behind removing a column and making it invisible are two different things. When a column is removed, it is no longer associated with the model in any way, whereas an invisible column is simply not displayed. This is somewhat similar to the idea of column ordering being different in the model from the view.


Method Summary
 int getColumnCount(boolean includeHidden)
          returns the number of contained columns including invisible if the parameter is true.
 TableColumnExt getColumnExt(Object identifier)
          returns the first TableColumnExt with the given identifier or null if none is found.
 List getColumns(boolean includeHidden)
          Returns all of the columns in the TableColumnModel, including invisible ones if the parameter is true.
 Set getInvisibleColumns()
          Returns a list containing all of the columns that are invisible.
 
Methods inherited from interface javax.swing.table.TableColumnModel
addColumn, addColumnModelListener, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumns, getColumnSelectionAllowed, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel
 

Method Detail

getInvisibleColumns

Set getInvisibleColumns()
Returns a list containing all of the columns that are invisible. If no columns in this model are invisible, then this will be an empty list.


getColumns

List getColumns(boolean includeHidden)
Returns all of the columns in the TableColumnModel, including invisible ones if the parameter is true.

Parameters:
includeHidden - if true the returned list contains all columns otherwise only the subset of visible columns.

getColumnExt

TableColumnExt getColumnExt(Object identifier)
returns the first TableColumnExt with the given identifier or null if none is found. The returned column may be visible or hidden.

Parameters:
identifier -
Returns:
first TableColumnExt with the given identifier or null if none is found

getColumnCount

int getColumnCount(boolean includeHidden)
returns the number of contained columns including invisible if the parameter is true.

Parameters:
includeHidden -
Returns:
the number of contained columns including the invisible ones if specified

swingx
Version 2005-08-19