net.sf.tacos.model
Interface ITreeContentProvider

All Superinterfaces:
IContentProvider
All Known Implementing Classes:
SimpleTreeContentProvider

public interface ITreeContentProvider
extends IContentProvider

Author:
phraktle

Method Summary
 Collection getChildren(Object parentElement)
          Returns all child elements of a parent.
 Object getParent(Object childElement)
          Returns the parent of the given element, or null if the the parent can't be determined.
 boolean hasChildren(Object parentElement)
           
 
Methods inherited from interface net.sf.tacos.model.IContentProvider
getElements
 

Method Detail

getChildren

public Collection getChildren(Object parentElement)
Returns all child elements of a parent. The returned collection is not modified by the viewer.

Parameters:
parentElement -
Returns:
Collection of child nodes (never null)

hasChildren

public boolean hasChildren(Object parentElement)
Parameters:
parentElement -
Returns:

getParent

public Object getParent(Object childElement)
Returns the parent of the given element, or null if the the parent can't be determined. Revealing a specific element will not work in this case.

Parameters:
childElement -
Returns:
parent or null