Inherits from
- ContentProvider: enthought.pyface.viewer.content_provider.ContentProvider
Method summary
- get_children(self, element)
- get_elements(self, element)
- get_parent(self, element)
- has_children(self, element)
Methods
- get_children(self, element)
Returns the children of an element.
- get_elements(self, element)
Returns a list of the elements to display in a viewer.
Returns a list of elements to display in a viewer when its (ie. the viewer's) input is set to the given element.
The returned list should not be modified by the viewer.
- get_parent(self, element)
Returns the parent of an element.
Returns None if the element either has no parent (ie. it is the root of the tree), or if the parent cannot be computed.
- has_children(self, element)
Returns True iff the element has children, otherwise False.