JIDE 3.5.15

com.jidesoft.grid
Interface CalculatedColumn

All Known Implementing Classes:
AbstractCalculatedColumn, ExpressionCalculatedColumn, SingleColumn

public interface CalculatedColumn

The interface is to define a column that is calculated from other columns of a table model.


Method Summary
 TableModel getActualModel()
          Gets the actual table model.
 Class<?> getColumnClass()
          Gets the class of this column.
 Object getColumnIdentifier()
          Gets the column identifier.
 String getColumnName()
          Gets the column name.
 int[] getDependingColumns()
          Gets the depending column index.
 Object getValueAt(int rowIndex)
          Gets the value at the cell of the row index.
 

Method Detail

getActualModel

TableModel getActualModel()
Gets the actual table model. Since this is calculated column, it is calculated from an existing column or existing columns in the actual table model.

Returns:
the actual table model.

getColumnName

String getColumnName()
Gets the column name. The column name is displayed on the table column header.

Returns:
the column name.

getColumnIdentifier

Object getColumnIdentifier()
Gets the column identifier. The column identifier should be unique in a table model.

Returns:
the column identifier.
Since:
3.5.5

getColumnClass

Class<?> getColumnClass()
Gets the class of this column.

Returns:
the column class.

getValueAt

Object getValueAt(int rowIndex)
Gets the value at the cell of the row index.

Parameters:
rowIndex -
Returns:
the cell value.

getDependingColumns

int[] getDependingColumns()
Gets the depending column index. The depending columns are those columns on which the value is calculated.

Returns:
the depending column index

JIDE 3.5.15