|
NextApp Echo2 v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo2.app.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 model. |
void |
addColumnModelListener(TableColumnModelListener l)
Adds a listener to be notified of updates to this TableColumnModel . |
protected void |
fireColumnAdded(TableColumnModelEvent e)
Notifies TableColumnModelListener s that a column was
added. |
protected void |
fireColumnMoved(TableColumnModelEvent e)
Notifies TableColumnModelListener s that a column was
moved. |
protected void |
fireColumnRemoved(TableColumnModelEvent e)
Notifies TableColumnModelListener s 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 . |
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 column to addTableColumnModel.addColumn(nextapp.echo2.app.table.TableColumn)
public void addColumnModelListener(TableColumnModelListener l)
TableColumnModel
TableColumnModel
.
addColumnModelListener
in interface TableColumnModel
l
- the listener to addTableColumnModel.addColumnModelListener(nextapp.echo2.app.event.TableColumnModelListener)
protected void fireColumnAdded(TableColumnModelEvent e)
TableColumnModelListener
s that a column was
added.
e
- the TableColumnModelEvent
to fireprotected void fireColumnMoved(TableColumnModelEvent e)
TableColumnModelListener
s that a column was
moved.
e
- the TableColumnModelEvent
to fireprotected void fireColumnRemoved(TableColumnModelEvent e)
TableColumnModelListener
s that a column was
removed.
e
- the TableColumnModelEvent
to firepublic TableColumn getColumn(int index)
TableColumnModel
TableColumn
at the specified index.
getColumn
in interface TableColumnModel
index
- the index
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
TableColumnModel.getColumnIndex(java.lang.Object)
public java.util.Iterator getColumns()
TableColumnModel
Iterator
over the columns of the column model.
getColumns
in interface TableColumnModel
Iterator
TableColumnModel.getColumns()
public void moveColumn(int columnIndex, int newIndex)
TableColumnModel
moveColumn
in interface TableColumnModel
columnIndex
- the index of the column to movenewIndex
- the new index of the specified columnTableColumnModel.moveColumn(int, int)
public void removeColumn(TableColumn column)
TableColumnModel
removeColumn
in interface TableColumnModel
column
- the column to removeTableColumnModel.removeColumn(nextapp.echo2.app.table.TableColumn)
public void removeColumnModelListener(TableColumnModelListener l)
TableColumnModel
TableColumnModel
.
removeColumnModelListener
in interface TableColumnModel
l
- the listener to removeTableColumnModel.removeColumnModelListener(nextapp.echo2.app.event.TableColumnModelListener)
|
NextApp Echo2 v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |