public interface TableColumnModel
extends java.io.Serializable
TableColumns of a
Table.| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(TableColumn column)
Adds a table column to the end of the model.
|
void |
addColumnModelListener(TableColumnModelListener l)
Adds a listener to be notified of updates to this
TableColumnModel. |
TableColumn |
getColumn(int columnIndex)
Returns the
TableColumn at the specified index. |
int |
getColumnCount()
Returns the number of columns in the column model.
|
int |
getColumnIndex(java.lang.Object identifier)
Returns the index of the table column with the given identifier.
|
java.util.Iterator |
getColumns()
Returns an
Iterator over the columns of the column model. |
void |
moveColumn(int columnIndex,
int newIndex)
Moves a table column to a new index within the model.
|
void |
removeColumn(TableColumn column)
Remove a table column from the model.
|
void |
removeColumnModelListener(TableColumnModelListener l)
Removes a listener from being notified of updates to this
TableColumnModel. |
void addColumn(TableColumn column)
column - the column to addvoid addColumnModelListener(TableColumnModelListener l)
TableColumnModel.l - the listener to addTableColumn getColumn(int columnIndex)
TableColumn at the specified index.columnIndex - the indexint getColumnCount()
int getColumnIndex(java.lang.Object identifier)
identifier - the identifierjava.lang.IllegalArgumentException - if the value of identifier
is null or if the no column was found with the given identifierjava.util.Iterator getColumns()
Iterator over the columns of the column model.Iteratorvoid moveColumn(int columnIndex,
int newIndex)
columnIndex - the index of the column to movenewIndex - the new index of the specified columnvoid removeColumn(TableColumn column)
column - the column to removevoid removeColumnModelListener(TableColumnModelListener l)
TableColumnModel.l - the listener to remove