Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.treetable.db
Class AbstractDatabaseAggregator

java.lang.Object
  extended by com.sciapp.treetable.AbstractAggregator
      extended by com.sciapp.treetable.db.AbstractDatabaseAggregator
All Implemented Interfaces:
Aggregator, DatabaseAggregator
Direct Known Subclasses:
DefaultDatabaseAggregator

public abstract class AbstractDatabaseAggregator
extends AbstractAggregator
implements DatabaseAggregator

AbstractDatabaseAggregator provides an implementation for the prepareValues method. Normally, you would not need to override it.


Field Summary
protected  DefaultDatabaseTreeTableModel treeModel
          the treeModel that is used to prepare the aggregate values.
 
Constructor Summary
AbstractDatabaseAggregator(DefaultDatabaseTreeTableModel treeModel)
          Constructs an AbstractDatabaseAggregator.
 
Method Summary
 List prepareValues(AggregateRow parent, int fromIndex, int toIndex)
          This method retrieves the aggregate values for the children of parent in the range from - to, and assigns them on the treeModel.
 
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
 
Methods inherited from interface com.sciapp.treetable.db.DatabaseAggregator
getAggregateObject, getAggregateValues
 
Methods inherited from interface com.sciapp.treetable.Aggregator
getAggregateValue, prepareValue
 

Field Detail

treeModel

protected DefaultDatabaseTreeTableModel treeModel
the treeModel that is used to prepare the aggregate values.

Constructor Detail

AbstractDatabaseAggregator

public AbstractDatabaseAggregator(DefaultDatabaseTreeTableModel treeModel)
Constructs an AbstractDatabaseAggregator.

Method Detail

prepareValues

public List prepareValues(AggregateRow parent,
                          int fromIndex,
                          int toIndex)
This method retrieves the aggregate values for the children of parent in the range from - to, and assigns them on the treeModel.

Specified by:
prepareValues in interface DatabaseAggregator
Parameters:
parent - the parent node
fromIndex - the index of the first child
toIndex - the index of the last child

Copyright © 2005 Scientific Applications. All Rights Reserved.