|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.table.DefaultTableColumnModel
public class DefaultTableColumnModel
The default TableColumnModel implementation.
Field Summary | |
---|---|
protected EventListenerList |
listenerList
A listener storage facility. |
Constructor Summary | |
---|---|
DefaultTableColumnModel()
Creates a new DefaultTableColumnModel. |
Method Summary | |
---|---|
void |
addColumn(TableColumn column)
Adds a table column to the end of the table column model. |
void |
addColumnModelListener(TableColumnModelListener l)
Adds a listener for table column model events. |
protected void |
fireColumnAdded(TableColumnModelEvent e)
Notifies listeners that a column was added. |
protected void |
fireColumnMoved(TableColumnModelEvent e)
Notifies listeners that a column was moved. |
protected void |
fireColumnRemoved(TableColumnModelEvent e)
Notifies listeners that a column was removed. |
TableColumn |
getColumn(int index)
Returns the table column found 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. |
void |
removeColumn(TableColumn column)
Remove a table column. |
void |
removeColumnModelListener(TableColumnModelListener l)
Removes a listener for table column model events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected EventListenerList listenerList
Constructor Detail |
---|
public DefaultTableColumnModel()
Method Detail |
---|
public void addColumn(TableColumn column)
TableColumnModel
addColumn
in interface TableColumnModel
column
- The table column to be added.TableColumnModel.addColumn(TableColumn)
public void addColumnModelListener(TableColumnModelListener l)
TableColumnModel
addColumnModelListener
in interface TableColumnModel
l
- The listener to add.TableColumnModel.addColumnModelListener(TableColumnModelListener)
protected void fireColumnAdded(TableColumnModelEvent e)
e
- An event describing the update.protected void fireColumnMoved(TableColumnModelEvent e)
e
- An event describing the update.protected void fireColumnRemoved(TableColumnModelEvent e)
e
- An event describing the update.public TableColumn getColumn(int index)
TableColumnModel
getColumn
in interface TableColumnModel
index
- The index of the TableColumn to return.
TableColumnModel.getColumn(int)
public int getColumnCount()
TableColumnModel
getColumnCount
in interface TableColumnModel
TableColumnModel.getColumnCount()
public int getColumnIndex(java.lang.Object identifier)
TableColumnModel
getColumnIndex
in interface TableColumnModel
identifier
- The identifier of the table column to return.
TableColumnModel.getColumnIndex(Object)
public java.util.Iterator getColumns()
TableColumnModel
getColumns
in interface TableColumnModel
TableColumnModel.getColumns()
public void moveColumn(int columnIndex, int newIndex)
TableColumnModel
moveColumn
in interface TableColumnModel
columnIndex
- The index of the column to move.newIndex
- The index to move the column to.TableColumnModel.moveColumn(int, int)
public void removeColumn(TableColumn column)
TableColumnModel
removeColumn
in interface TableColumnModel
column
- The column to remove.TableColumnModel.removeColumn(TableColumn)
public void removeColumnModelListener(TableColumnModelListener l)
TableColumnModel
removeColumnModelListener
in interface TableColumnModel
l
- The listener to remove.TableColumnModel.removeColumnModelListener(TableColumnModelListener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |