com.citra.tree
Class DefaultCellAggregator
java.lang.Object
com.citra.tree.Aggregator
com.citra.tree.DefaultCellAggregator
public class DefaultCellAggregator
- extends Aggregator
The default Aggregator that is used by a TreeTableModel.
Method Summary |
Object |
getAggregateValue(int rowIndex,
int columnIndex)
Calculates and returns the aggregate value for the row at rowIndex and columnIndex.
For header rows, returns the value of the column under which the children of the header row
are grouped or an emptry string if the column was not used to group this node's children. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCellAggregator
public DefaultCellAggregator(TreeTableModel model)
- Constructs a DefaultCellAggregator object.
getAggregateValue
public Object getAggregateValue(int rowIndex,
int columnIndex)
- Calculates and returns the aggregate value for the row at rowIndex and columnIndex.
For header rows, returns the value of the column under which the children of the header row
are grouped or an emptry string if the column was not used to group this node's children.
For footer rows, returns an empty string.
- Specified by:
getAggregateValue
in class Aggregator
- Parameters:
rowIndex
- the index of the rowcolumnIndex
- the index of the column
- Returns:
- the aggregate value