public class DefaultTableColumnModel extends java.lang.Object implements java.io.Serializable, TableColumnModel
TableColumnModel implementation.| Modifier and Type | Field and Description |
|---|---|
protected EventListenerList |
listenerList
A listener storage facility.
|
| Constructor and Description |
|---|
DefaultTableColumnModel()
Creates a new DefaultTableColumnModel.
|
| 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. |
protected void |
fireColumnAdded(TableColumnModelEvent e)
Notifies
TableColumnModelListeners that a column was
added. |
protected void |
fireColumnMoved(TableColumnModelEvent e)
Notifies
TableColumnModelListeners that a column was
moved. |
protected void |
fireColumnRemoved(TableColumnModelEvent e)
Notifies
TableColumnModelListeners that a column was
removed. |
TableColumn |
getColumn(int index)
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. |
protected EventListenerList listenerList
public DefaultTableColumnModel()
public void addColumn(TableColumn column)
TableColumnModeladdColumn in interface TableColumnModelcolumn - the column to addTableColumnModel.addColumn(nextapp.echo.app.table.TableColumn)public void addColumnModelListener(TableColumnModelListener l)
TableColumnModelTableColumnModel.addColumnModelListener in interface TableColumnModell - the listener to addTableColumnModel.addColumnModelListener(nextapp.echo.app.event.TableColumnModelListener)protected void fireColumnAdded(TableColumnModelEvent e)
TableColumnModelListeners that a column was
added.e - the TableColumnModelEvent to fireprotected void fireColumnMoved(TableColumnModelEvent e)
TableColumnModelListeners that a column was
moved.e - the TableColumnModelEvent to fireprotected void fireColumnRemoved(TableColumnModelEvent e)
TableColumnModelListeners that a column was
removed.e - the TableColumnModelEvent to firepublic TableColumn getColumn(int index)
TableColumnModelTableColumn at the specified index.getColumn in interface TableColumnModelindex - the indexTableColumnModel.getColumn(int)public int getColumnCount()
TableColumnModelgetColumnCount in interface TableColumnModelTableColumnModel.getColumnCount()public int getColumnIndex(java.lang.Object identifier)
TableColumnModelgetColumnIndex in interface TableColumnModelidentifier - the identifierTableColumnModel.getColumnIndex(java.lang.Object)public java.util.Iterator getColumns()
TableColumnModelIterator over the columns of the column model.getColumns in interface TableColumnModelIteratorTableColumnModel.getColumns()public void moveColumn(int columnIndex,
int newIndex)
TableColumnModelmoveColumn in interface TableColumnModelcolumnIndex - the index of the column to movenewIndex - the new index of the specified columnTableColumnModel.moveColumn(int, int)public void removeColumn(TableColumn column)
TableColumnModelremoveColumn in interface TableColumnModelcolumn - the column to removeTableColumnModel.removeColumn(nextapp.echo.app.table.TableColumn)public void removeColumnModelListener(TableColumnModelListener l)
TableColumnModelTableColumnModel.removeColumnModelListener in interface TableColumnModell - the listener to removeTableColumnModel.removeColumnModelListener(nextapp.echo.app.event.TableColumnModelListener)