T - the object type of the header valuepublic class KeyColumn<T> extends TreeTableColumn<T>
AbstractGanttChart.setKeyColumnPosition(int)). The key column always
returns MODEL_INDEX as its model index.IColumnModel,
AbstractGanttChart.setKeyColumnPosition(int),
ITreeTableModel.getKey(Object),
ColumnModelIterator| Modifier and Type | Field and Description |
|---|---|
static int |
MODEL_INDEX
The model index of the key column is stored in this static class member.
|
PROPERTY_COLUMN_CLASS, PROPERTY_HEADER_VALUE, PROPERTY_MAX_WIDTH, PROPERTY_MIN_WIDTH, PROPERTY_MODEL_INDEX, PROPERTY_WIDTHPROPERTY_NAME| Constructor and Description |
|---|
KeyColumn(String name,
Class columnClass)
Constructs a new key column object with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getModelIndex()
Overriden and made final in order to ensure that the model index returned
by this method is always
MODEL_INDEX (identifying the
column as the key column). |
void |
setModelIndex(int newIndex)
Overriden and made final in order to ensure that the model index can not
be modified.
|
getCellRenderer, getColumnClass, getHeaderValue, getMaximumWidth, getMinimumWidth, getSupportedSortDirections, getWidth, isSortable, isSupported, setCellRenderer, setColumnClass, setHeaderValue, setMaximumWidth, setMinimumWidth, setSupportedSortDirections, setWidth, toStringaddPropertyChangeListener, compareTo, getChangeSupport, getName, removePropertyChangeListener, setNamepublic static final int MODEL_INDEX
public KeyColumn(String name, Class columnClass)
name - the name of the column (used for sorting and in menus)columnClass - the type of objects shown in the column's cellsIColumnHeaderRenderer,
TreeTable.getCellRenderer(Class),
TreeTable.getCellEditor(Class)public final void setModelIndex(int newIndex)
MODEL_INDEX to identify itself as the key column.setModelIndex in class TreeTableColumn<T>TreeTableColumn.setModelIndex(int)public final int getModelIndex()
MODEL_INDEX (identifying the
column as the key column).getModelIndex in class TreeTableColumn<T>Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.