01: /*
02: * GWT-Ext Widget Library
03: * Copyright(c) 2007-2008, GWT-Ext.
04: * licensing@gwt-ext.com
05: *
06: * http://www.gwt-ext.com/license
07: */
08:
09: package com.gwtext.client.data.event;
10:
11: import com.gwtext.client.data.Node;
12: import com.gwtext.client.data.Tree;
13:
14: public class TreeListenerAdapter implements TreeListener {
15:
16: public void onAppend(Tree tree, Node parent, Node node, int index) {
17: }
18:
19: public boolean doBeforeAppend(Tree tree, Node parent, Node node) {
20: return true;
21: }
22:
23: public boolean doBeforeInsert(Tree tree, Node parent, Node node,
24: Node refNode) {
25: return true;
26: }
27:
28: public boolean doBeforeMove(Tree tree, Node node, Node oldParent,
29: Node newParent, int index) {
30: return true;
31: }
32:
33: public boolean doBeforeRemove(Tree tree, Node parent, Node node) {
34: return true;
35: }
36:
37: public void onInsert(Tree tree, Node parent, Node node, Node refNode) {
38: }
39:
40: public void onMove(Tree tree, Node node, Node oldParent,
41: Node newParent, int index) {
42: }
43:
44: public void onRemove(Tree tree, Node parent, Node node) {
45: }
46: }
|