|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.table.DefaultTableColumnModel
org.jcreme.swing.table.columnmodel.EditableTableColumnModel
This extension of the DefaultTableModel enables to handle hidden columns.
| Field Summary |
| Fields inherited from class javax.swing.table.DefaultTableColumnModel |
changeEvent, columnMargin, columnSelectionAllowed, listenerList, selectionModel, tableColumns, totalColumnWidth |
| Constructor Summary | |
EditableTableColumnModel()
|
|
| Method Summary | |
javax.swing.table.TableColumn[] |
getAllColumns()
Gives access to a complete list of the columns in the model regardless of whether they are hidden or not. |
int |
getColumnIndex(java.lang.Object identifier)
Provides the index of the column associated to the Identifier. |
javax.swing.table.TableColumn[] |
getHiddenColumns()
Gives access to the hidden columns. |
void |
hideColumn(javax.swing.table.TableColumn column)
Hide a column. |
void |
removeColumn(javax.swing.table.TableColumn column)
Removes a column from the model (whether hidden or not). |
void |
showColumn(javax.swing.table.TableColumn column)
Shows a previously hidden column. |
| Methods inherited from class javax.swing.table.DefaultTableColumnModel |
addColumn, addColumnModelListener, createSelectionModel, fireColumnAdded, fireColumnMarginChanged, fireColumnMoved, fireColumnRemoved, fireColumnSelectionChanged, getColumn, getColumnCount, getColumnIndexAtX, getColumnMargin, getColumnModelListeners, getColumns, getColumnSelectionAllowed, getListeners, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, propertyChange, recalcWidthCache, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel, valueChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EditableTableColumnModel()
| Method Detail |
public void hideColumn(javax.swing.table.TableColumn column)
column - the column to hide.public void removeColumn(javax.swing.table.TableColumn column)
column - the column to remove.public void showColumn(javax.swing.table.TableColumn column)
column - the column to show.public javax.swing.table.TableColumn[] getHiddenColumns()
public int getColumnIndex(java.lang.Object identifier)
identifier - the identifier of a column.
public javax.swing.table.TableColumn[] getAllColumns()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||