001: /*
002: * GWT-Ext Widget Library
003: * Copyright(c) 2007-2008, GWT-Ext.
004: * licensing@gwt-ext.com
005: *
006: * http://www.gwt-ext.com/license
007: */
008:
009: package com.gwtext.client.dd;
010:
011: import com.gwtext.client.core.JsObject;
012: import com.gwtext.client.core.ExtElement;
013: import com.gwtext.client.widgets.Layer;
014: import com.google.gwt.core.client.JavaScriptObject;
015:
016: public class StatusProxy extends JsObject {
017:
018: public StatusProxy(JavaScriptObject jsObj) {
019: super (jsObj);
020: }
021:
022: public StatusProxy() {
023: jsObj = create(null);
024: }
025:
026: protected native JavaScriptObject create(JavaScriptObject config)/*-{
027: return new $wnd.Ext.dd.StatusProxy(config);
028: }-*/;
029:
030: private static StatusProxy instance(JavaScriptObject jsObj) {
031: return new StatusProxy(jsObj);
032: }
033:
034: /**
035: * Returns the underlying proxy {@link Layer}.
036: *
037: * @return the underlying proxy Layer
038: */
039: public native Layer getEl() /*-{
040: var proxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
041: var layer = proxy.getEl();
042: return @com.gwtext.client.widgets.Layer::instance(Lcom/google/gwt/core/client/JavaScriptObject;)(layer);
043: }-*/;
044:
045: /**
046: * Returns the ghost element.
047: *
048: * @return the ghost element
049: */
050: public native ExtElement getGhost() /*-{
051: var proxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
052: var ghost = proxy.getGhost();
053: return @com.gwtext.client.core.ExtElement::instance(Lcom/google/gwt/core/client/JavaScriptObject;)(ghost);
054: }-*/;
055:
056: public native void hide() /*-{
057: var proxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
058: proxy.hide();
059: }-*/;
060:
061: public native void hide(boolean clear) /*-{
062: var proxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
063: proxy.hide(clear);
064: }-*/;
065:
066: public native void reset() /*-{
067: var proxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
068: proxy.reset();
069: }-*/;
070:
071: public native void reset(boolean clearGhost) /*-{
072: var proxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
073: proxy.reset(clearGhost);
074: }-*/;
075:
076: public native void setStatus(String cssClass) /*-{
077: var proxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
078: proxy.setStatus(cssClass);
079: }-*/;
080:
081: public native void show() /*-{
082: var proxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
083: proxy.show();
084: }-*/;
085:
086: public native void stop() /*-{
087: var proxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
088: proxy.stop();
089: }-*/;
090:
091: public native void sync() /*-{
092: var proxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
093: proxy.sync();
094: }-*/;
095:
096: public native void update(String html) /*-{
097: var proxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
098: proxy.update(html);
099: }-*/;
100: }
|