|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gwtext.client.data.event.NodeListenerAdapter
public class NodeListenerAdapter
Node listener adapter class.
Constructor Summary | |
---|---|
NodeListenerAdapter()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeListenerAdapter()
Method Detail |
---|
public void onAppend(Tree tree, Node self, Node node, int index)
NodeListener
onAppend
in interface NodeListener
tree
- the owner treeself
- this nodenode
- the newly appended nodeindex
- the index of the newly appended nodepublic boolean doBeforeAppend(Tree tree, Node self, Node node)
NodeListener
doBeforeAppend
in interface NodeListener
tree
- the owner treeself
- this nodenode
- the child node to be appended
public boolean doBeforeInsert(Tree tree, Node self, Node node, Node refNode)
NodeListener
doBeforeInsert
in interface NodeListener
tree
- the owner treeself
- this nodenode
- the child node to be insertedrefNode
- the child node the node is being inserted before
public boolean doBeforeMove(Tree tree, Node self, Node oldParent, Node newParent, int index)
NodeListener
doBeforeMove
in interface NodeListener
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
public boolean doBeforeRemove(Tree tree, Node self, Node node)
NodeListener
doBeforeRemove
in interface NodeListener
tree
- the owner treeself
- this nodenode
- the child node to be removed
public void onInsert(Tree tree, Node self, Node node, Node refNode)
NodeListener
onInsert
in interface NodeListener
tree
- the owner treeself
- this nodenode
- the child node insertedrefNode
- the child node the node was inserted beforepublic void onMove(Tree tree, Node self, Node oldParent, Node newParent, int index)
NodeListener
onMove
in interface NodeListener
tree
- the owner treeself
- this nodeoldParent
- the old parent of this nodenewParent
- the new parent of this nodeindex
- the index it was moved topublic void onRemove(Tree tree, Node self, Node node)
NodeListener
onRemove
in interface NodeListener
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 |