Package edu.harvard.hul.ois.jhove.viewer
Class RepTreeRoot
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
edu.harvard.hul.ois.jhove.viewer.RepTreeRoot
- All Implemented Interfaces:
Serializable,Cloneable,MutableTreeNode,TreeNode
This subclass of DefaultMutableTreeNode simply adds a method for constructing
the tree. All nodes in the tree except for the root will be plain
DefaultMutablereeNodes.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetIndexOfChild(Object parent, Object child) Find the index of an object in its parent.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
-
Constructor Details
-
RepTreeRoot
Constructor.- Parameters:
info- The RepInfo object whose contents are to be displayed.base- The JHOVE base on which we're operating.
-
-
Method Details
-
getIndexOfChild
Find the index of an object in its parent. Understands the Jhove property structure.
-