|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeListener
Tree
listener interface.
Method Summary | |
---|---|
boolean |
doBeforeAppend(Tree tree,
Node parent,
Node node)
Fires before a new child is appended to a node in this tree, return false to cancel the append. |
boolean |
doBeforeInsert(Tree tree,
Node parent,
Node node,
Node refNode)
Fires before a new child is inserted in a node in this tree, return false to cancel the insert. |
boolean |
doBeforeMove(Tree tree,
Node node,
Node oldParent,
Node newParent,
int index)
Fires before a node is moved to a new location in the tree. |
boolean |
doBeforeRemove(Tree tree,
Node parent,
Node node)
Fires before a child is removed from a node in this tree, return false to cancel the remove. |
void |
onAppend(Tree tree,
Node parent,
Node node,
int index)
Fires when a new child node is appended to a node in this tree. |
void |
onInsert(Tree tree,
Node parent,
Node node,
Node refNode)
Fires when a new child node is inserted in a node in this tree. |
void |
onMove(Tree tree,
Node node,
Node oldParent,
Node newParent,
int index)
Fires when a node is moved to a new location in the tree. |
void |
onRemove(Tree tree,
Node parent,
Node node)
Fires when a child node is removed from a node in this tree. |
Method Detail |
---|
void onAppend(Tree tree, Node parent, Node node, int index)
tree
- the owner treeparent
- the parent nodenode
- the newly appended nodeindex
- the index of the newly appended nodeboolean doBeforeAppend(Tree tree, Node parent, Node node)
tree
- the owner treeparent
- the parent nodenode
- the child node to be appended
boolean doBeforeInsert(Tree tree, Node parent, Node node, Node refNode)
tree
- the owner treeparent
- the parent nodenode
- the child node to be insertedrefNode
- the child node the node is being inserted before
boolean doBeforeMove(Tree tree, Node node, Node oldParent, Node newParent, int index)
tree
- the owner treenode
- the node being movedoldParent
- the parent of the nodenewParent
- the new parent the node is moving toindex
- the index it is being moved to
boolean doBeforeRemove(Tree tree, Node parent, Node node)
tree
- the owner treeparent
- the parent nodenode
- the child node to be removed
void onInsert(Tree tree, Node parent, Node node, Node refNode)
tree
- the owner treeparent
- the parent nodenode
- the child node insertedrefNode
- the child node the node was inserted beforevoid onMove(Tree tree, Node node, Node oldParent, Node newParent, int index)
tree
- the owner treenode
- the node movedoldParent
- the old parent of this nodenewParent
- the new parent of this nodeindex
- the index it was moved tovoid onRemove(Tree tree, Node parent, Node node)
tree
- the owner treeparent
- the parent nodenode
- the child node removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |