com.citra.tree
Class HeaderRow
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.citra.tree.TreeTableRow
com.citra.tree.AggregateRow
com.citra.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
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 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 |
HeaderRow
public HeaderRow(Object o,
int modelIndex)
- Creates a HeaderRow object.
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