Package snap.view

Class TreeResolver<T>

java.lang.Object
snap.view.TreeResolver<T>
Direct Known Subclasses:
DevPaneViewOwners.ViewOwnersTreeResolver, DevPaneViews.ViewTreeResolver, TreeResolver.Adapter

public abstract class TreeResolver<T> extends Object
An interface for providing tree item information.
  • Constructor Details

    • TreeResolver

      public TreeResolver()
  • Method Details

    • getParent

      public abstract T getParent(T anItem)
      Returns the parent of given item.
    • isParent

      public abstract boolean isParent(T anItem)
      Whether given object is a parent (has children).
    • getChildren

      public abstract T[] getChildren(T aParent)
      Returns the children.
    • getText

      public String getText(T anItem)
      Returns the text to be used for given item.
    • getText

      public String getText(T anItem, int aCol)
      Returns the text to be used for given item in given column.
    • getImage

      public Image getImage(T anItem)
      Return the image to be used for given item.
    • getGraphic

      public View getGraphic(T anItem)
      Return the graphic to be used for given item.
    • getImageAfter

      public Image getImageAfter(T anItem)
      Return the image to be used for given item after item text.
    • getGraphicAfter

      public View getGraphicAfter(T anItem)
      Return the graphic to be used for given item after text.
    • getBranchImage

      public Image getBranchImage(T anItem)
      The icon of given item.