|
|||||||||
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
public abstract class TreeTableRow
A TreeTableRow represents a node in the tree data structure of a TreeTableModel. TreeTableRows are classified in data rows and aggregate rows.
Data rows are associated with an object row of the ListTableModel that holds the actual tabular data. This is done with the help of an index that points to the respective object in the data list of ListTableModel. The userObject of its superclass, DefaultMutableTreeNode, is also a reference to that object.
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
.
Field Summary | |
---|---|
protected int |
modelIndex
an integer that refers to the index of the object that this TreeTableRow is associated with. |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
TreeTableRow(Object o,
int modelIndex)
Constructs a TreeTableRow object having o as the userObject and modelIndex
as the index of the object this TreeTableRow is associated with. |
Method Summary | |
---|---|
int |
getModelIndex()
Returns the index of the object in the data list of a ListTableModel that this TreeTableRow is associated with. |
abstract boolean |
isAggregate()
Returns true if this node represents an aggregate row in the tree data structure created by TreeTableModel. |
abstract boolean |
isFooter()
Returns true if this node represents a footer row in the tree data structure created by TreeTableModel. |
abstract boolean |
isHeader()
Returns true if this node represents a header row in the tree data structure created by TreeTableModel. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int modelIndex
Constructor Detail |
---|
public TreeTableRow(Object o, int modelIndex)
o
as the userObject and modelIndex
as the index of the object this TreeTableRow is associated with.
Method Detail |
---|
public int getModelIndex()
public abstract boolean isAggregate()
public abstract boolean isFooter()
public abstract boolean isHeader()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |