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.form.event;
10:
11: import com.google.gwt.core.client.JavaScriptObject;
12: import com.gwtext.client.core.JsObject;
13: import com.gwtext.client.util.JavaScriptObjectHelper;
14:
15: /**
16: * @see ComboBoxListener#doBeforeQuery(com.gwtext.client.widgets.form.ComboBox, ComboBoxCallback)
17: */
18: public class ComboBoxCallback extends JsObject {
19:
20: private ComboBoxCallback(JavaScriptObject jsObj) {
21: super (jsObj);
22: }
23:
24: private static ComboBoxCallback instance(JavaScriptObject jsObj) {
25: return new ComboBoxCallback(jsObj);
26: }
27:
28: /**
29: * Returns the query.
30: *
31: * @return the query
32: */
33: public String getQuery() {
34: return JavaScriptObjectHelper.getAttribute(jsObj, "query");
35: }
36:
37: /**
38: * Sets the query.
39: *
40: * @param query the query
41: */
42: public void setQuery(String query) {
43: JavaScriptObjectHelper.setAttribute(jsObj, "query", query);
44: }
45:
46: /**
47: * Set true to force "all" query.
48: *
49: * @param forceAll true to force "all" query
50: */
51: public void setForceAll(boolean forceAll) {
52: JavaScriptObjectHelper
53: .setAttribute(jsObj, "forceAll", forceAll);
54: }
55:
56: /**
57: * Returns true if query is force "all".
58: *
59: * @return true if force "all"
60: */
61: public boolean getForceAll() {
62: return JavaScriptObjectHelper.getAttributeAsBoolean(jsObj,
63: "forceAll");
64: }
65: }
|