Interface IGridModel<T>

    • Method Detail

      • getElements

        T[] getElements()
        Returns the array of top level objects.
        Returns:
        the array of top level objects, never null.
      • getChildren

        T[] getChildren​(T element)
        Returns the array of children for a given element.
        Parameters:
        element - the parent element, cannot be null.
        Returns:
        the array of children of the 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.
      • getSelectedElementModel

        IValue<T> getSelectedElementModel()
        Returns the model of currently selected element in grid.
        Returns:
        the IValue instance, never null.