Class RepTreeRoot

java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
edu.harvard.hul.ois.jhove.viewer.RepTreeRoot
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode

public class RepTreeRoot extends DefaultMutableTreeNode
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:
  • Constructor Details

    • RepTreeRoot

      public RepTreeRoot(RepInfo info, JhoveBase base)
      Constructor.
      Parameters:
      info - The RepInfo object whose contents are to be displayed.
      base - The JHOVE base on which we're operating.
  • Method Details

    • getIndexOfChild

      public int getIndexOfChild(Object parent, Object child)
      Find the index of an object in its parent. Understands the Jhove property structure.