protected static class DefaultTableModel.MyTableColumnModel
extends DefaultTableColumnModel
Column model implementation that keeps model indexes aligned with the current column order.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public List |
getColumnList()Returns the live list of table columns. |
|
public void |
moveColumn(int columnIndex, int newIndex)Moves a column and then renumbers the model indexes to match the new order. |
|
public void |
removeColumn(TableColumn column)Removes a column and then renumbers the remaining model indexes. |
|
public void |
renumberTableColumns()Reassigns model indexes to match the current column order. |
| Methods inherited from class | Name |
|---|---|
class DefaultTableColumnModel |
addColumn, addColumnModelListener, equals, getClass, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumnModelListeners, getColumnSelectionAllowed, getColumns, getListeners, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, hashCode, moveColumn, notify, notifyAll, propertyChange, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel, toString, valueChanged, wait, wait, wait |
Returns the live list of table columns.
Moves a column and then renumbers the model indexes to match the new order.
columnIndex - the source column indexnewIndex - the destination column indexRemoves a column and then renumbers the remaining model indexes.
column - the column to removeReassigns model indexes to match the current column order.