|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.tree.Aggregator
public abstract class Aggregator
Aggregator calculates and returns values for the aggregate rows of a TreeTable component.
Field Summary | |
---|---|
protected TreeTableModel |
model
the associated treetablemodel |
Constructor Summary | |
---|---|
Aggregator(TreeTableModel model)
Constructs an Aggregator object. |
Method Summary | |
---|---|
abstract Object |
getAggregateValue(int rowIndex,
int columnIndex)
Calculates and returns the aggregate value for the row at rowIndex and columnIndex. |
TreeTableModel |
getModel()
Returns the associated TreeTableModel instance. |
Object |
prepare(AggregateRow row,
int rowIndex,
int columnIndex)
This method retrieves the aggregate value that was set for the row at rowIndex and columnIndex. |
void |
setModel(TreeTableModel model)
Sets model as the TreeTableModel of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TreeTableModel model
Constructor Detail |
---|
public Aggregator(TreeTableModel model)
Method Detail |
---|
public abstract Object getAggregateValue(int rowIndex, int columnIndex)
rowIndex
- the index of the rowcolumnIndex
- the index of the column
public TreeTableModel getModel()
public Object prepare(AggregateRow row, int rowIndex, int columnIndex)
Aggregator.getAggregateValue(int, int)
is called in order to calculate it, and the value returned
is assigned as the aggregate value of the row via the AggregateRow.setAggregateValue(java.lang.Object, int, int)
method.
In this way, aggregate values are evaluated only once, in order to avoid manifold operations.
row
- the aggregate rowrowIndex
- the index of the rowcolumnIndex
- the column of the row
row
public void setModel(TreeTableModel model)
model
as the TreeTableModel of this object.
model
- the treetablemodel to assign
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |