EGF Engine
Release 0.1.0

org.eclipse.egf.common.ui.viewers
Class DefaultTreeNode

java.lang.Object
  extended by org.eclipse.egf.common.ui.viewers.DefaultTreeNode
All Implemented Interfaces:
ITreeNode
Direct Known Subclasses:
PatternEditorContentOutlinePage.PatternDataNode, PatternEditorContentOutlinePage.PatternParameterNode, PatternEditorContentOutlinePage.RootNode

public abstract class DefaultTreeNode
extends Object
implements ITreeNode

A default abstract implementation of the tree node.
Parent node is as specified at construction time.
By default assumes that there is no child, thus returns null to getChildren() implementation.


Constructor Summary
DefaultTreeNode(ITreeNode parent_p)
          Constructor.
 
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 ?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTreeNode

public DefaultTreeNode(ITreeNode parent_p)
Constructor.

Parameters:
parent_p -
Method Detail

getChildren

public ITreeNode[] getChildren()
Description copied from interface: ITreeNode
Get children nodes.

Specified by:
getChildren in interface ITreeNode
Returns:
null if none.
See Also:
ITreeNode.getChildren()

getParent

public ITreeNode getParent()
Description copied from interface: ITreeNode
Get parent node.

Specified by:
getParent in interface ITreeNode
Returns:
null if none.
See Also:
ITreeNode.getParent()

hasChildren

public boolean hasChildren()
Description copied from interface: ITreeNode
Has current node any children ?

Specified by:
hasChildren in interface ITreeNode
Returns:
true if so, false otherwise.
See Also:
ITreeNode.hasChildren()

isHandling

public boolean isHandling(Object element_p)
Description copied from interface: ITreeNode
Is node handling/representing given element ?

Specified by:
isHandling in interface ITreeNode
Returns:
See Also:
ITreeNode.isHandling(java.lang.Object)

comparisonPriority

public int comparisonPriority()
Description copied from interface: ITreeNode
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.

Specified by:
comparisonPriority in interface ITreeNode
Returns:
0 stands for neutral priority.
See Also:
ITreeNode.comparisonPriority()

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.