Package snap.view

Class TreeResolver.Adapter<T>

java.lang.Object
snap.view.TreeResolver<T>
snap.view.TreeResolver.Adapter<T>
Enclosing class:
TreeResolver<T>

public static class TreeResolver.Adapter<T> extends TreeResolver<T>
An Adapter class.
  • Constructor Details

    • Adapter

      public Adapter()
  • Method Details

    • getParent

      public T getParent(T anItem)
      Returns the parent of given item.
      Specified by:
      getParent in class TreeResolver<T>
    • isParent

      public boolean isParent(T anItem)
      Whether given object is a parent (has children).
      Specified by:
      isParent in class TreeResolver<T>
    • getChildren

      public T[] getChildren(T aParent)
      Returns the children.
      Specified by:
      getChildren in class TreeResolver<T>