Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.treetable
Class TreeNodeAggregator

java.lang.Object
  extended by com.citra.treetable.AbstractAggregator
      extended by com.citra.treetable.TreeNodeAggregator
All Implemented Interfaces:
Aggregator

public class TreeNodeAggregator
extends AbstractAggregator

The default Aggregator that is used by an AggregateTreeTableModel.


Field Summary
protected  AggregateTreeTableModel model
          the associated aggregate treetable model
 
Constructor Summary
TreeNodeAggregator(AggregateTreeTableModel model)
          Constructs a TreeNodeAggregator object.
 
Method Summary
 Object getAggregateValue(AggregateRow row, int columnIndex)
          Calculates and returns the aggregate value for node at columnIndex. For aggregate 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.
 AggregateTreeTableModel getModel()
          Returns the associated aggregate treetable model instance.
 void setModel(AggregateTreeTableModel model)
          Sets model as the aggregate treetable model of this object.
 
Methods inherited from class com.citra.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 AggregateTreeTableModel model
the associated aggregate treetable model

Constructor Detail

TreeNodeAggregator

public TreeNodeAggregator(AggregateTreeTableModel model)
Constructs a TreeNodeAggregator object.

Method Detail

getAggregateValue

public Object getAggregateValue(AggregateRow row,
                                int columnIndex)
Calculates and returns the aggregate value for node at columnIndex.

For aggregate 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.

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

getModel

public AggregateTreeTableModel getModel()
Returns the associated aggregate treetable model instance.

Returns:
the associated aggregate treetable model

setModel

public void setModel(AggregateTreeTableModel model)
Sets model as the aggregate treetable model of this object.

Parameters:
model - the new aggregate treetable model to assign

Copyright © 2011 Citra Technologies. All Rights Reserved.