|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
com.sciapp.tree.TreeTableRow
com.sciapp.tree.AggregateRow
public abstract class AggregateRow
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 not associated with the data of the ListTableModel, but
can 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.
Field Summary | |
---|---|
protected Object[] |
aggregateValues
The object array which is used to store aggregate information. |
Fields inherited from class com.sciapp.tree.TreeTableRow |
---|
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 | |
---|---|
Object |
getAggregateValue(int rowIndex,
int columnIndex)
Returns the aggregate value for the row at rowIndex and column at columnIndex. |
boolean |
isAggregate()
Returns true. |
void |
setAggregateValue(Object value,
int rowIndex,
int columnIndex)
Sets the aggregate value for the object at rowIndex and columnIndex. |
Methods inherited from class com.sciapp.tree.TreeTableRow |
---|
getModelIndex, isFooter, isHeader |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Object[] aggregateValues
Constructor Detail |
---|
public AggregateRow(Object o, int modelIndex)
Method Detail |
---|
public Object getAggregateValue(int rowIndex, int columnIndex)
rowIndex
- the index of the rowcolumnIndex
- the index of the column
public boolean isAggregate()
Returns true if this node represents an aggregate row in the tree data structure created by TreeTableModel.
isAggregate
in class TreeTableRow
public void setAggregateValue(Object value, int rowIndex, int columnIndex)
value
- the aggregate value to setrowIndex
- the index of the rowcolumnIndex
- the index of the column
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |