| com.gwtext.client.data.event.TreeListener
All known Subclasses: com.gwtext.client.data.event.TreeListenerAdapter,
TreeListener | public interface TreeListener (Code) | | 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. |
doBeforeAppend | boolean doBeforeAppend(Tree tree, Node parent, Node node)(Code) | | Fires before a new child is appended to a node in this tree, return false to cancel the append.
Parameters: tree - the owner tree Parameters: parent - the parent node Parameters: node - the child node to be appended false to cancel the append |
doBeforeInsert | boolean doBeforeInsert(Tree tree, Node parent, Node node, Node refNode)(Code) | | Fires before a new child is inserted in a node in this tree, return false to cancel the insert.
Parameters: tree - the owner tree Parameters: parent - the parent node Parameters: node - the child node to be inserted Parameters: refNode - the child node the node is being inserted before false to cancel the insert |
doBeforeMove | boolean doBeforeMove(Tree tree, Node node, Node oldParent, Node newParent, int index)(Code) | | Fires before a node is moved to a new location in the tree. Return false to cancel the move.
Parameters: tree - the owner tree Parameters: node - the node being moved Parameters: oldParent - the parent of the node Parameters: newParent - the new parent the node is moving to Parameters: index - the index it is being moved to false to cancel the move |
doBeforeRemove | boolean doBeforeRemove(Tree tree, Node parent, Node node)(Code) | | Fires before a child is removed from a node in this tree, return false to cancel the remove.
Parameters: tree - the owner tree Parameters: parent - the parent node Parameters: node - the child node to be removed false to cancel the remove |
onAppend | void onAppend(Tree tree, Node parent, Node node, int index)(Code) | | Fires when a new child node is appended to a node in this tree.
Parameters: tree - the owner tree Parameters: parent - the parent node Parameters: node - the newly appended node Parameters: index - the index of the newly appended node |
onInsert | void onInsert(Tree tree, Node parent, Node node, Node refNode)(Code) | | Fires when a new child node is inserted in a node in this tree.
Parameters: tree - the owner tree Parameters: parent - the parent node Parameters: node - the child node inserted Parameters: refNode - the child node the node was inserted before |
onMove | void onMove(Tree tree, Node node, Node oldParent, Node newParent, int index)(Code) | | Fires when a node is moved to a new location in the tree.
Parameters: tree - the owner tree Parameters: node - the node moved Parameters: oldParent - the old parent of this node Parameters: newParent - the new parent of this node Parameters: index - the index it was moved to |
onRemove | void onRemove(Tree tree, Node parent, Node node)(Code) | | Fires when a child node is removed from a node in this tree.
Parameters: tree - the owner tree Parameters: parent - the parent node Parameters: node - the child node removed |
|
|