|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TableColumnModel
A representation of a table's columns.
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. |
TableColumn |
getColumn(int columnIndex)
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. |
Method Detail |
---|
void addColumn(TableColumn column)
column
- The table column to be added.void addColumnModelListener(TableColumnModelListener l)
l
- The listener to add.TableColumn getColumn(int columnIndex)
columnIndex
- The index of the TableColumn to return.
int getColumnCount()
int getColumnIndex(java.lang.Object identifier)
identifier
- The identifier of the table column to return.
java.lang.IllegalArgumentException
- if the value of identifier
is null or if the no column was found with the given identifier.java.util.Iterator getColumns()
void moveColumn(int columnIndex, int newIndex)
columnIndex
- The index of the column to move.newIndex
- The index to move the column to.void removeColumn(TableColumn column)
column
- The column to remove.void removeColumnModelListener(TableColumnModelListener l)
l
- The listener to remove.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |