public interface IColumnModel
TreeTableColumn
,
KeyColumn
,
IColumnModelListener
,
TreeTableHeader
,
ColumnModelIterator
,
ITreeTableModel.getKey(Object)
Modifier and Type | Method and Description |
---|---|
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.
|
void setKeyColumn(KeyColumn column)
column
- the key columnKeyColumn getKeyColumn()
TreeTableColumn getColumn(int index)
index
- the index for which to return the columnint getColumnCount()
int getColumnIndex(TreeTableColumn col)
col
- the column for which to return the indexvoid 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()
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.