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