EGF Engine
Release 0.1.0

org.eclipse.egf.common.ui.viewers
Interface ITreeNode

All Known Implementing Classes:
DefaultTreeNode, PatternEditorContentOutlinePage.PatternDataNode, PatternEditorContentOutlinePage.PatternMethodNode, PatternEditorContentOutlinePage.PatternParameterNode, PatternEditorContentOutlinePage.RootNode

public interface ITreeNode

A default tree node interface for tree viewers.
Forces the use of tree nodes all along the tree.


Method Summary
 int comparisonPriority()
          An integer value that represents the priority of this kind of node.
 ITreeNode[] getChildren()
          Get children nodes.
 ITreeNode getParent()
          Get parent node.
 boolean hasChildren()
          Has current node any children ?
 boolean isHandling(Object element_p)
          Is node handling/representing given element ?
 

Method Detail

getChildren

ITreeNode[] getChildren()
Get children nodes.

Returns:
null if none.

getParent

ITreeNode getParent()
Get parent node.

Returns:
null if none.

hasChildren

boolean hasChildren()
Has current node any children ?

Returns:
true if so, false otherwise.

isHandling

boolean isHandling(Object element_p)
Is node handling/representing given element ?

Parameters:
element_p -
Returns:

comparisonPriority

int comparisonPriority()
An integer value that represents the priority of this kind of node.
Should always be the same for objects of the same implementation of ITreeNode.

Returns:
0 stands for neutral priority.

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.