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.widgets.tree.event;
10:
11: import com.gwtext.client.widgets.tree.TreeLoader;
12: import com.gwtext.client.widgets.tree.TreeNode;
13:
14: public interface TreeLoaderListener {
15:
16: /**
17: * Fires before a network request is made to retrieve the Json text which specifies a node's children.
18: *
19: * @param self this
20: * @param node the node
21: * @return false to cancel
22: */
23: boolean doBeforeLoad(TreeLoader self, TreeNode node);
24:
25: /**
26: * Fires when the node has been successfuly loaded.
27: *
28: * @param self this
29: * @param node the node
30: * @param response the response text containing the data from the server
31: */
32: void onLoad(TreeLoader self, TreeNode node, String response);
33:
34: /**
35: * Fires if the network request failed.
36: *
37: * @param self this
38: * @param node the node
39: * @param response the response containing the data from the server
40: */
41: void onLoadException(TreeLoader self, TreeNode node, String response);
42: }
|