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: package com.gwtext.client.widgets.tree;
09:
10: import com.gwtext.client.core.BaseConfig;
11: import com.gwtext.client.util.JavaScriptObjectHelper;
12:
13: public class TreeFilterConfig extends BaseConfig {
14:
15: /**
16: * If set to true and the filter value is blank, then clear the filter. Defaults to false.
17: *
18: * @param clearBlank true to clear filter when blank
19: */
20: public void setClearBlank(boolean clearBlank) {
21: JavaScriptObjectHelper.setAttribute(jsObj, "clearBlank",
22: clearBlank);
23: }
24:
25: /**
26: * If set to true and {@link com.gwtext.client.widgets.tree.TreeFilter#filterBy(TreeTraversalCallback)} is called, then the
27: * filter based on the return value of the of the callback is reversed. Default is false.
28: *
29: * @param reverse true to reverse filter values
30: */
31: public void setReverse(boolean reverse) {
32: JavaScriptObjectHelper.setAttribute(jsObj, "reverse", reverse);
33: }
34:
35: public void setAutoClear(boolean autoClear) {
36: JavaScriptObjectHelper.setAttribute(jsObj, "autoClear",
37: autoClear);
38: }
39:
40: /**
41: * If set to true, the nodes are removed from the tree on filter. Defaults to false.
42: *
43: * @param remove true to remove nodes
44: */
45: public void setRemove(boolean remove) {
46: JavaScriptObjectHelper.setAttribute(jsObj, "remove", remove);
47: }
48: }
|