|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.viewers.TreeNode
eu.esdihumboldt.hale.ui.util.tree.AbstractMultiColumnTreeNode
eu.esdihumboldt.hale.ui.util.tree.MapTreeNode<T,N>
T
- the key typeN
- the node typepublic class MapTreeNode<T,N extends org.eclipse.jface.viewers.TreeNode>
Tree node that associates children with a key
Constructor Summary | |
---|---|
MapTreeNode(Object... values)
Create a new node |
Method Summary | |
---|---|
void |
addChild(T key,
N child)
Add a child to the node |
protected Map<T,N> |
createMap()
Create the map that is used to manage the children |
N |
getChild(T key)
Get the child with the given key |
protected Collection<? extends org.eclipse.jface.viewers.TreeNode> |
getChildNodes()
Get the child nodes |
void |
removeChild(T key)
Remove the child node with the given key |
void |
removeChildNode(N child)
Remove a child node |
void |
setChildren(org.eclipse.jface.viewers.TreeNode[] children)
|
Methods inherited from class eu.esdihumboldt.hale.ui.util.tree.AbstractMultiColumnTreeNode |
---|
equals, getChildren, getFirstValue, getValue, hasChildren, hashCode, setValues |
Methods inherited from class org.eclipse.jface.viewers.TreeNode |
---|
getParent, setParent |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapTreeNode(Object... values)
values
- the node valuesMethod Detail |
---|
protected Map<T,N> createMap()
public void addChild(T key, N child)
key
- the keychild
- the child nodepublic N getChild(T key)
key
- the key
null
public void removeChild(T key)
key
- the child nodepublic void setChildren(org.eclipse.jface.viewers.TreeNode[] children)
setChildren
in class org.eclipse.jface.viewers.TreeNode
TreeNode.setChildren(TreeNode[])
protected Collection<? extends org.eclipse.jface.viewers.TreeNode> getChildNodes()
AbstractMultiColumnTreeNode
getChildNodes
in class AbstractMultiColumnTreeNode
AbstractMultiColumnTreeNode.getChildNodes()
public void removeChildNode(N child)
child
- the child node
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |