A content provider that expects every element to be a
Most methods delegate to
inputChanged(Viewer, Object, Object) do nothing by
This class and all of its methods may be overridden or extended.
- See Also:
Method SummaryModifier and TypeMethodDescription
ObjectReturns the child elements of the given parent element.
ObjectReturns the elements to display in the viewer when its input is set to the given element.Returns the parent for the given element, or
nullindicating that the parent can't be computed.
booleanReturns whether the given element has children.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildrenReturns the child elements of the given parent element.
The difference between this method andThe result is not modified by the viewer.
getElementsis called to obtain the tree viewer's root elements, whereas
getChildrenis used to obtain the children of a given parent element in the tree (including a root).
getElementsReturns the elements to display in the viewer when its input is set to the given element. These elements can be presented as rows in a table, items in a list, etc. The result is not modified by the viewer.
getParentReturns the parent for the given element, or
nullindicating that the parent can't be computed. In this case the tree-structured viewer can't expand a given node correctly if requested.
hasChildrenpublic boolean hasChildren
(Object element)Returns whether the given element has children.
Intended as an optimization for when the viewer does not need the actual children. Clients may be able to implement this more efficiently than