com.sciapp.tree
Class FooterRow
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.sciapp.tree.TreeTableRow
com.sciapp.tree.AggregateRow
com.sciapp.tree.FooterRow
- All Implemented Interfaces:
- Serializable, Cloneable, MutableTreeNode, TreeNode
public class FooterRow
- extends AggregateRow
The FooterRow class corresponds to rows of a TreeTable component that are placed
at the bottom of each tree hierarchy.
There can be an infinite number of FooterRows at every tree level. In order to
discriminate between them, each FooterRow bears an index which corresponds
to the order with which the FooterRow was added to the TreeTable.
- See Also:
- Serialized Form
Field Summary |
protected int |
footerIndex
the order with which the FooterRow was added to the TreeTable. |
Constructor Summary |
FooterRow(Object o,
int modelIndex,
int footerIndex)
Constructs a FooterRow object. |
Method Summary |
int |
getFooterIndex()
Returns the order with which the FooterRow was added to the TreeTable. |
boolean |
isFooter()
Returns true. |
boolean |
isHeader()
Returns false. |
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, toString |
footerIndex
protected int footerIndex
- the order with which the FooterRow was added to the TreeTable.
FooterRow
public FooterRow(Object o,
int modelIndex,
int footerIndex)
- Constructs a FooterRow object.
footerIndex
is the order with which
this object is added to the TreeTable.
getFooterIndex
public int getFooterIndex()
- Returns the order with which the FooterRow was added to the TreeTable.
- Returns:
- an index
isFooter
public boolean isFooter()
- Returns true.
Returns true if this node represents a footer row in the
tree data structure created by TreeTableModel.
- Specified by:
isFooter
in class TreeTableRow
- Returns:
- true if this node is a footer row, false otherwise.
isHeader
public boolean isHeader()
- Returns false.
Returns true if this node represents a header row in the
tree data structure created by TreeTableModel.
- Specified by:
isHeader
in class TreeTableRow
- Returns:
- true if this node is a header row, false otherwise.