Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.treetable
Class DefaultCellAggregator

java.lang.Object
  extended by com.sciapp.treetable.AbstractAggregator
      extended by com.sciapp.treetable.DefaultCellAggregator
All Implemented Interfaces:
Aggregator

public class DefaultCellAggregator
extends AbstractAggregator

The default Aggregator that is used by a DynamicTreeTableModel.


Field Summary
protected  DynamicTreeTableModel model
          the associated dynamic treetable model
 
Constructor Summary
DefaultCellAggregator(DynamicTreeTableModel model)
          Constructs a DefaultCellAggregator object.
 
Method Summary
 Object getAggregateValue(AggregateRow row, int columnIndex)
          Calculates and returns the aggregate value for node at 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.
 DynamicTreeTableModel getModel()
          Returns the associated dynamic treetable model instance.
 void setModel(DynamicTreeTableModel model)
          Sets model as the dynamic treetable model of this object.
 
Methods inherited from class com.sciapp.treetable.AbstractAggregator
prepareValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

protected DynamicTreeTableModel model
the associated dynamic treetable model

Constructor Detail

DefaultCellAggregator

public DefaultCellAggregator(DynamicTreeTableModel model)
Constructs a DefaultCellAggregator object.

Method Detail

getAggregateValue

public Object getAggregateValue(AggregateRow row,
                                int columnIndex)
Calculates and returns the aggregate value for node at 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.

Parameters:
row - the node
columnIndex - the index of the column
Returns:
the aggregate value

getModel

public DynamicTreeTableModel getModel()
Returns the associated dynamic treetable model instance.

Returns:
the associated dynamic treetable model

setModel

public void setModel(DynamicTreeTableModel model)
Sets model as the dynamic treetable model of this object.

Parameters:
model - the new dynamic treetable model to assign

Copyright © 2005 Scientific Applications. All Rights Reserved.