com.citra.treetable.db
Class AbstractDatabaseAggregator
java.lang.Object
com.citra.treetable.AbstractAggregator
com.citra.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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
treeModel
protected DefaultDatabaseTreeTableModel treeModel
- the treeModel that is used to prepare the aggregate values.
AbstractDatabaseAggregator
public AbstractDatabaseAggregator(DefaultDatabaseTreeTableModel treeModel)
- Constructs an AbstractDatabaseAggregator.
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 nodefromIndex
- the index of the first childtoIndex
- the index of the last child