On this page
[Java] Class DefaultTableColumn
- groovy.swing.model.DefaultTableColumn
public class DefaultTableColumn
extends TableColumn
Represents a column using a ValueModel to extract the value.
Fields inherited from class | Fields |
---|---|
class TableColumn |
COLUMN_WIDTH_PROPERTY, HEADER_VALUE_PROPERTY, HEADER_RENDERER_PROPERTY, CELL_RENDERER_PROPERTY |
Constructor Summary
Constructor and description |
---|
DefaultTableColumn(ValueModel valueModel) |
DefaultTableColumn(Object header, ValueModel valueModel) |
DefaultTableColumn(Object headerValue, Object identifier, ValueModel columnValueModel) |
Methods Summary
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() |
|
public void |
setValue(Object row, Object value, int rowIndex, int columnIndex) |
|
public String |
toString() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class TableColumn |
getIdentifier, getPropertyChangeListeners, removePropertyChangeListener, getWidth, getHeaderValue, setWidth, setPreferredWidth, setMinWidth, setMaxWidth, getPreferredWidth, setModelIndex, getModelIndex, setIdentifier, setHeaderValue, setHeaderRenderer, getHeaderRenderer, setCellRenderer, getCellRenderer, setCellEditor, getCellEditor, getMinWidth, getMaxWidth, setResizable, getResizable, sizeWidthToFit, disableResizedPosting, enableResizedPosting, addPropertyChangeListener, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
public DefaultTableColumn(ValueModel valueModel)
public DefaultTableColumn(Object header, ValueModel valueModel)
public DefaultTableColumn(Object headerValue, Object identifier, ValueModel columnValueModel)
Method Detail
public Class getType()
- Returns:
- the column type
public Object getValue(Object row, int rowIndex, int columnIndex)
Evaluates the value of a cell
- Returns:
- the value
- Parameters:
row
- the row of interestrowIndex
- the index of the row of interestcolumnIndex
- the column of interest
public ValueModel getValueModel()
public void setValue(Object row, Object value, int rowIndex, int columnIndex)
@Override public String toString()
© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/groovy/swing/model/DefaultTableColumn.html