Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.tree
Class HeaderRow

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

public class HeaderRow
extends AggregateRow

The HeaderRow class corresponds to group rows (rows that bear children nodes and that can be expanded) of a TreeTable component.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sciapp.tree.AggregateRow
aggregateValues
 
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
HeaderRow(Object o, int modelIndex)
          Creates a HeaderRow object.
 
Method Summary
 boolean isFooter()
          Returns false.
 boolean isHeader()
          Returns true.
 void remove(int childIndex)
          Removes the child at the specified index from this node's children and sets that node's parent to null.
 
Methods inherited from class com.sciapp.tree.AggregateRow
getAggregateValue, isAggregate, setAggregateValue
 
Methods inherited from class com.sciapp.tree.TreeTableRow
getModelIndex
 
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, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HeaderRow

public HeaderRow(Object o,
                 int modelIndex)
Creates a HeaderRow object.

Method Detail

isFooter

public boolean isFooter()
Returns false.

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 true.

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.

remove

public void remove(int childIndex)
Removes the child at the specified index from this node's children and sets that node's parent to null. The child node to remove must be a MutableTreeNode.

Specified by:
remove in interface MutableTreeNode
Overrides:
remove in class DefaultMutableTreeNode
Parameters:
childIndex - the index in this node's child array of the child to remove

Copyright © 2005 Scientific Applications. All Rights Reserved.