Interface IAefGridContentProvider<T extends IGridItem>

All Known Implementing Classes:
MappingGridContentProvider

public interface IAefGridContentProvider<T extends IGridItem>
The grid content provider.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Disposes the provider.
    getChildren(T parentElement)
    Retrieves collection of children for a given parentElement.
    Retrieves collection of top level elements.
    getParent(T element)
    Returns the parent of the given element.
    boolean
    hasChildren(T element)
    Returns true if the element has children.
  • Method Details

    • getElements

      Collection<T> getElements()
      Retrieves collection of top level elements.
      Returns:
      the top level elements, never null.
    • getChildren

      Collection<T> getChildren(T parentElement)
      Retrieves collection of children for a given parentElement.
      Parameters:
      parentElement - the parent element, cannot be null.
      Returns:
      the collection of children of the parent element, never null.
    • getParent

      T getParent(T element)
      Returns the parent of the given element.
      Parameters:
      element - the element, cannot be null.
      Returns:
      the parent element or null.
    • hasChildren

      boolean hasChildren(T element)
      Returns true if the element has children.
      Parameters:
      element - the element, cannot be null.
      Returns:
      true if the element has children
    • dispose

      void dispose()
      Disposes the provider.