Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.treetable
Class AggregateRow

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by com.sciapp.treetable.TreeTableRow
          extended by com.sciapp.treetable.AggregateRow
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode
Direct Known Subclasses:
FooterRow, HeaderRow

public abstract class AggregateRow
extends TreeTableRow

A specialized TreeTableRow subclass that represents an aggregate row of a TreeTable.

Aggregate rows can either correspond to the group rows of the TreeTable (header rows, that can be expanded), or to rows that are placed at the bottom of each tree hierarchy, so called footer rows. An aggregate row is usually used to provide information about the rows that are below it or above it (header or footer row respectively). This is done with the help of an Aggregator.

Aggregate rows store cumulative row information in an Object array, so that the calculations need not be performed every time the TreeTable is repainted.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sciapp.treetable.TreeTableRow
aggregateValues, modelIndex
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
AggregateRow(Object o, int modelIndex)
          Constructs an AggregateRow object.
 
Method Summary
 boolean isAggregate()
          Returns true.
 
Methods inherited from class com.sciapp.treetable.TreeTableRow
clear, getAggregateValue, getAggregateValues, getModelIndex, isFooter, isHeader, setAggregateValue, setAggregateValues, setModelIndex, toString
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AggregateRow

public AggregateRow(Object o,
                    int modelIndex)
Constructs an AggregateRow object.

Method Detail

isAggregate

public boolean isAggregate()
Returns true.

Returns true if this node represents an aggregate row in the tree data structure created by TreeTableModel.

Specified by:
isAggregate in class TreeTableRow
Returns:
true if this node is an aggregate row, false otherwise.

Copyright © 2005 Scientific Applications. All Rights Reserved.