T
- the key typeN
- the node typepublic class MapTreeNode<T,N extends org.eclipse.jface.viewers.TreeNode> extends AbstractMultiColumnTreeNode
Constructor and Description |
---|
MapTreeNode(Object... values)
Create a new node
|
Modifier and Type | Method and Description |
---|---|
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) |
equals, getChildren, getFirstValue, getValue, hasChildren, hashCode, setValues
public MapTreeNode(Object... values)
values
- the node valuesprotected Map<T,N> createMap()
public void addChild(T key, N child)
key
- the keychild
- the child nodepublic N getChild(T key)
key
- the keynull
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 nodeBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a