| net.refractions.udig.tool.info.internal.InfoTreeViewer
InfoTreeViewer | public class InfoTreeViewer extends TreeViewer implements ITreeContentProvider,ILabelProvider(Code) | | Display Information from InfoTool as a Tree.
InfoTool currently grabs a list from the Renderstack, this may be replaced
with real Information object at somepoint in the future.
For the List>LayerPointInfo<:
- Each LayerPointInfo is a node in the Tree
- LayerPointInfo of type gml the value will be a FeatureCollection, each Feature will
be a node in the tree (at least until we get a FeatureCollection Viewer)
author: Jody Garnett, Refractions Research since: 0.6 |
Constructor Summary | |
public | InfoTreeViewer(Composite parent) Construct CatalogTreeViewer . |
InfoTreeViewer | public InfoTreeViewer(Composite parent)(Code) | | Construct CatalogTreeViewer .
Parameters: parent - |
addListener | public void addListener(ILabelProviderListener listener)(Code) | | |
dispose | public void dispose()(Code) | | See Also: org.eclipse.jface.viewers.IContentProvider.dispose |
getChildren | public Object[] getChildren(Object parent)(Code) | | Returns the child elements of the given parent element.
The difference between this method and IStructuredContentProvider.getElements
is that getElements is called to obtain the
tree viewer's root elements, whereas getChildren is used
to obtain the children of a given parent element in the tree (including a root).
The result is not modified by the viewer.
See Also: org.eclipse.jface.viewers.ITreeContentProvider.getChildren(java.lang.Object) Parameters: parent - the parent element an array of child elements |
getElements | public Object[] getElements(Object inputElement)(Code) | | Returns 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.
Parameters: inputElement - the input element the array of elements to display in the viewer |
getParent | public Object getParent(Object element)(Code) | | See Also: org.eclipse.jface.viewers.ITreeContentProvider.getParent(java.lang.Object) |
hasChildren | public boolean hasChildren(Object element)(Code) | | See Also: org.eclipse.jface.viewers.ITreeContentProvider.hasChildren(java.lang.Object) |
inputChanged | protected void inputChanged(Object input, Object oldInput)(Code) | | Notificaiton that the input has been changed.
See Also: org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(java.lang.Objectjava.lang.Object) Parameters: input - Parameters: oldInput - |
inputChanged | public void inputChanged(Viewer viewer, Object oldInput, Object newInput)(Code) | | Reset the viewer to new information
See Also: org.eclipse.jface.viewers.IContentProvider.inputChanged(org.eclipse.jface.viewers.Viewerjava.lang.Objectjava.lang.Object) Parameters: viewer - Parameters: oldInput - Parameters: newInput - |
removeListener | public void removeListener(ILabelProviderListener listener)(Code) | | |
|
|