com.citra.treetable
Class AggregateRow
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.citra.treetable.TreeTableRow
com.citra.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
Constructor Summary |
AggregateRow(Object o,
int modelIndex)
Constructs an AggregateRow object. |
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 |
AggregateRow
public AggregateRow(Object o,
int modelIndex)
- Constructs an AggregateRow object.
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.