Package groovy.model
Class DefaultTableColumn
- java.lang.Object
-
- javax.swing.table.TableColumn
-
- groovy.model.DefaultTableColumn
-
- All Implemented Interfaces:
java.io.Serializable
public class DefaultTableColumn extends javax.swing.table.TableColumn
Represents a column using a ValueModel to extract the value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultTableColumn(ValueModel valueModel)
DefaultTableColumn(java.lang.Object header, ValueModel valueModel)
DefaultTableColumn(java.lang.Object headerValue, java.lang.Object identifier, ValueModel columnValueModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class
getType()
java.lang.Object
getValue(java.lang.Object row, int rowIndex, int columnIndex)
Evaluates the value of a cellValueModel
getValueModel()
void
setValue(java.lang.Object row, java.lang.Object value, int rowIndex, int columnIndex)
java.lang.String
toString()
-
Methods inherited from class javax.swing.table.TableColumn
addPropertyChangeListener, createDefaultHeaderRenderer, disableResizedPosting, enableResizedPosting, getCellEditor, getCellRenderer, getHeaderRenderer, getHeaderValue, getIdentifier, getMaxWidth, getMinWidth, getModelIndex, getPreferredWidth, getPropertyChangeListeners, getResizable, getWidth, removePropertyChangeListener, setCellEditor, setCellRenderer, setHeaderRenderer, setHeaderValue, setIdentifier, setMaxWidth, setMinWidth, setModelIndex, setPreferredWidth, setResizable, setWidth, sizeWidthToFit
-
-
-
-
Constructor Detail
-
DefaultTableColumn
public DefaultTableColumn(ValueModel valueModel)
-
DefaultTableColumn
public DefaultTableColumn(java.lang.Object header, ValueModel valueModel)
-
DefaultTableColumn
public DefaultTableColumn(java.lang.Object headerValue, java.lang.Object identifier, ValueModel columnValueModel)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getValue
public java.lang.Object getValue(java.lang.Object row, int rowIndex, int columnIndex)
Evaluates the value of a cell- Parameters:
row
- the row of interestrowIndex
- the index of the row of interestcolumnIndex
- the column of interest- Returns:
- the value
-
setValue
public void setValue(java.lang.Object row, java.lang.Object value, int rowIndex, int columnIndex)
-
getType
public java.lang.Class getType()
- Returns:
- the column type
-
getValueModel
public ValueModel getValueModel()
-
-