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;
10:
11: /**
12: * Callback interface invoked on an expandable node.
13: *
14: * @see TreePanel#expandPath(String, NodeExpansionCallback)
15: */
16: public interface NodeExpansionCallback {
17:
18: /**
19: * The callback method to call when the expand is complete. The callback will be called with
20: * (success, lastNode) where success is if the expand was successful and lastNode is the last node that was expanded.
21: *
22: * @param success true if expand successful
23: * @param lastNode the last node expanded
24: */
25: void onExpand(boolean success, TreeNode lastNode);
26: }
|