public class DefaultTableColumn
extends TableColumn
A TableColumn backed by a ValueModel for reading and writing cell values.
| Fields inherited from class | Fields |
|---|---|
class TableColumn |
COLUMN_WIDTH_PROPERTY, HEADER_VALUE_PROPERTY, HEADER_RENDERER_PROPERTY, CELL_RENDERER_PROPERTY |
| Constructor and description |
|---|
DefaultTableColumn(ValueModel valueModel)Creates a column backed by the supplied value model. |
DefaultTableColumn(Object header, ValueModel valueModel)Creates a column with a header value and backing value model. |
DefaultTableColumn(Object headerValue, Object identifier, ValueModel columnValueModel)Creates a column with header and identifier values. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Class |
getType()
|
|
public Object |
getValue(Object row, int rowIndex, int columnIndex)Evaluates the value of a cell |
|
public ValueModel |
getValueModel()Returns the value model used by this column. |
|
public void |
setValue(Object row, Object value, int rowIndex, int columnIndex)Writes a cell value through the backing value model. |
|
public String |
toString()Returns a debug-friendly description of this column and its backing value model. |
| Methods inherited from class | Name |
|---|---|
class TableColumn |
addPropertyChangeListener, disableResizedPosting, enableResizedPosting, equals, getCellEditor, getCellRenderer, getClass, getHeaderRenderer, getHeaderValue, getIdentifier, getMaxWidth, getMinWidth, getModelIndex, getPreferredWidth, getPropertyChangeListeners, getResizable, getWidth, hashCode, notify, notifyAll, removePropertyChangeListener, setCellEditor, setCellRenderer, setHeaderRenderer, setHeaderValue, setIdentifier, setMaxWidth, setMinWidth, setModelIndex, setPreferredWidth, setResizable, setWidth, sizeWidthToFit, toString, wait, wait, wait |
Creates a column backed by the supplied value model.
valueModel - the value model used to access cell valuesCreates a column with a header value and backing value model.
header - the column header valuevalueModel - the value model used to access cell valuesCreates a column with header and identifier values.
headerValue - the column header valueidentifier - the logical identifier for the columncolumnValueModel - the value model used to access cell values
Evaluates the value of a cell
row - the row of interestrowIndex - the index of the row of interestcolumnIndex - the column of interestReturns the value model used by this column.
Writes a cell value through the backing value model.
row - the row object that owns the valuevalue - the new cell valuerowIndex - the source row indexcolumnIndex - the source column indexReturns a debug-friendly description of this column and its backing value model.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.