|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IColumnModel
A column model interface that will be used by the tree table's column header component. The interface distinguishes between regular tree table columns and the special key column. The key column is the column in which the tree structure of the Gantt chart model will become visible and in which the table cells display the key object of the tree nodes. Attached listeners will be informed when columns get added, removed or inserted.
TreeTableColumn
,
KeyColumn
,
IColumnModelListener
,
TreeTableHeader
,
ColumnModelIterator
,
ITreeTableModel.getKey(Object)
Method Summary | |
---|---|
void |
addColumn(TreeTableColumn col)
Adds a column to the model. |
void |
addColumnModelListener(IColumnModelListener l)
Adds a column model listener to the model. |
TreeTableColumn |
getColumn(int index)
Returns the tree table column at the given index. |
int |
getColumnCount()
Returns the total number of columns added to the model. |
int |
getColumnIndex(TreeTableColumn col)
Returns the index of the given column if it is a member of the model ( Integer.MAX_VALUE otherwise). |
KeyColumn |
getKeyColumn()
Returns the special key column. |
int |
getTotalColumnWidth()
Returns the total width as calculated by the widths of the individual columns. |
void |
moveColumn(int oldIndex,
int newIndex)
Moves the column at the given index to the new index. |
void |
removeColumn(TreeTableColumn col)
Removes a column from the model. |
void |
removeColumnModelListener(IColumnModelListener l)
Removes a column model listener. |
void |
setKeyColumn(KeyColumn column)
Sets the special key column. |
Method Detail |
---|
void setKeyColumn(KeyColumn column)
column
- the key columnKeyColumn getKeyColumn()
TreeTableColumn getColumn(int index)
index
- the index for which to return the column
int getColumnCount()
int getColumnIndex(TreeTableColumn col)
col
- the column for which to return the index
void addColumn(TreeTableColumn col)
col
- the column to addvoid removeColumn(TreeTableColumn col)
col
- the column to removevoid moveColumn(int oldIndex, int newIndex)
oldIndex
- the current index of the columnnewIndex
- the new index of the columnvoid addColumnModelListener(IColumnModelListener l)
l
- the new listenervoid removeColumnModelListener(IColumnModelListener l)
l
- the listener to removeint getTotalColumnWidth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |