public static class TreeLayoutHelper.TreeListener
extends java.lang.Object
Constructor and Description |
---|
TreeListener() |
Modifier and Type | Method and Description |
---|---|
protected void |
defaultHandle(TreeLayoutHelper.TreeNode changedNode)
A convenience method that can be overridden if a listener reacts the
same way to all events.
|
void |
nodeAdded(TreeLayoutHelper.TreeNode newNode)
Called when new node is added to the tree structure.
|
void |
nodeRemoved(TreeLayoutHelper.TreeNode removedNode)
Called when a node is removed from the tree structure.
|
void |
parentChanged(TreeLayoutHelper.TreeNode node,
TreeLayoutHelper.TreeNode previousParent)
Called when a node changes its parent.
|
public void nodeAdded(TreeLayoutHelper.TreeNode newNode)
Super Root
newNode
- the added nodepublic void nodeRemoved(TreeLayoutHelper.TreeNode removedNode)
removedNode
- the removed nodepublic void parentChanged(TreeLayoutHelper.TreeNode node, TreeLayoutHelper.TreeNode previousParent)
node
- node that changes its parentpreviousParent
- previous parent of the nodeprotected void defaultHandle(TreeLayoutHelper.TreeNode changedNode)
changedNode
- the node that has changedCopyright (c) 2014 itemis AG and others. All rights reserved.