Class DefaultTableColumn

java.lang.Object
javax.swing.table.TableColumn
groovy.swing.model.DefaultTableColumn
All Implemented Interfaces:
Serializable

public class DefaultTableColumn extends TableColumn
Represents a column using a ValueModel to extract the value.
See Also:
  • Constructor Details

    • DefaultTableColumn

      public DefaultTableColumn(ValueModel valueModel)
    • DefaultTableColumn

      public DefaultTableColumn(Object header, ValueModel valueModel)
    • DefaultTableColumn

      public DefaultTableColumn(Object headerValue, Object identifier, ValueModel columnValueModel)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getValue

      public Object getValue(Object row, int rowIndex, int columnIndex)
      Evaluates the value of a cell
      Parameters:
      row - the row of interest
      rowIndex - the index of the row of interest
      columnIndex - the column of interest
      Returns:
      the value
    • setValue

      public void setValue(Object row, Object value, int rowIndex, int columnIndex)
    • getType

      public Class getType()
      Returns:
      the column type
    • getValueModel

      public ValueModel getValueModel()