|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TableColumnModelExt
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 |
---|
Set getInvisibleColumns()
List getColumns(boolean includeHidden)
includeHidden
- if true the returned list contains all columns
otherwise only the subset of visible columns.TableColumnExt getColumnExt(Object identifier)
identifier
-
TableColumnExt
with the given identifier
or null if none is foundint getColumnCount(boolean includeHidden)
includeHidden
-
|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |