Interface TreeModel

  • All Known Implementing Classes:
    WorkbenchTreeModel

    public interface TreeModel
    A generalization of a javax.swing.tree.TreeModel.
    Author:
    mlowery
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object getChild​(java.lang.Object parent, int index)
      Returns the child at index.
      int getChildCount​(java.lang.Object parent)
      Returns the number of children of parent.
      java.lang.Object getRoot()
      Returns the root object of this tree model.
    • Method Detail

      • getChildCount

        int getChildCount​(java.lang.Object parent)
        Returns the number of children of parent.
      • getChild

        java.lang.Object getChild​(java.lang.Object parent,
                                  int index)
        Returns the child at index.
      • getRoot

        java.lang.Object getRoot()
        Returns the root object of this tree model.