Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.util.tree
Class AbstractMultiColumnTreeNode

java.lang.Object
  extended by org.eclipse.jface.viewers.TreeNode
      extended by eu.esdihumboldt.hale.ui.util.tree.AbstractMultiColumnTreeNode
Direct Known Subclasses:
DefaultTreeNode, MapTreeNode

public abstract class AbstractMultiColumnTreeNode
extends org.eclipse.jface.viewers.TreeNode

Tree node that stores values for multiple columns

Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Constructor Summary
AbstractMultiColumnTreeNode(Object... values)
          Create a new node
 
Method Summary
 boolean equals(Object obj)
           
protected abstract  Collection<? extends org.eclipse.jface.viewers.TreeNode> getChildNodes()
          Get the child nodes
 org.eclipse.jface.viewers.TreeNode[] getChildren()
           
 Object getFirstValue()
          Get the first value
 Object getValue()
           
 boolean hasChildren()
           
 int hashCode()
           
 void setValues(Object... values)
          Set the node value
 
Methods inherited from class org.eclipse.jface.viewers.TreeNode
getParent, setChildren, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMultiColumnTreeNode

public AbstractMultiColumnTreeNode(Object... values)
Create a new node

Parameters:
values - the node values
Method Detail

getValue

public Object getValue()
Overrides:
getValue in class org.eclipse.jface.viewers.TreeNode
See Also:
TreeNode.getValue()

setValues

public void setValues(Object... values)
Set the node value

Parameters:
values - the node values

getChildNodes

protected abstract Collection<? extends org.eclipse.jface.viewers.TreeNode> getChildNodes()
Get the child nodes

Returns:
a collection of child nodes, it should never be changed

getChildren

public org.eclipse.jface.viewers.TreeNode[] getChildren()
Overrides:
getChildren in class org.eclipse.jface.viewers.TreeNode
See Also:
TreeNode.getChildren()

hasChildren

public boolean hasChildren()
Overrides:
hasChildren in class org.eclipse.jface.viewers.TreeNode
See Also:
TreeNode.hasChildren()

getFirstValue

public Object getFirstValue()
Get the first value

Returns:
the first value

hashCode

public int hashCode()
Overrides:
hashCode in class org.eclipse.jface.viewers.TreeNode
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Overrides:
equals in class org.eclipse.jface.viewers.TreeNode
See Also:
Object.equals(Object)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d