Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.tree
Class DefaultCellAggregator

java.lang.Object
  extended by com.sciapp.tree.Aggregator
      extended by com.sciapp.tree.DefaultCellAggregator

public class DefaultCellAggregator
extends Aggregator

The default Aggregator that is used by a TreeTableModel.


Field Summary
 
Fields inherited from class com.sciapp.tree.Aggregator
model
 
Constructor Summary
DefaultCellAggregator(TreeTableModel model)
          Constructs a DefaultCellAggregator object.
 
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 com.sciapp.tree.Aggregator
getModel, prepare, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCellAggregator

public DefaultCellAggregator(TreeTableModel model)
Constructs a DefaultCellAggregator object.

Method Detail

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 row
columnIndex - the index of the column
Returns:
the aggregate value

Copyright © 2005 Scientific Applications. All Rights Reserved.