Interface IAefGridContentProvider<T extends IGridItem>
-
- All Known Implementing Classes:
MappingGridContentProvider
public interface IAefGridContentProvider<T extends IGridItem>The grid content provider.- See Also:
DynamicGridInput
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddispose()Disposes the provider.Collection<T>getChildren(T parentElement)Retrieves collection of children for a givenparentElement.Collection<T>getElements()Retrieves collection of top level elements.TgetParent(T element)Returns the parent of the givenelement.booleanhasChildren(T element)Returnstrueif the element has children.
-
-
-
Method Detail
-
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 givenparentElement.- Parameters:
parentElement- the parent element, cannot benull.- Returns:
- the collection of children of the parent element, never
null.
-
getParent
T getParent(T element)
Returns the parent of the givenelement.- Parameters:
element- the element, cannot benull.- Returns:
- the parent element or
null.
-
hasChildren
boolean hasChildren(T element)
Returnstrueif the element has children.- Parameters:
element- the element, cannot benull.- Returns:
trueif the element has children
-
dispose
void dispose()
Disposes the provider.
-
-