Example usage for com.google.gwt.core.client JavaScriptObject createObject

List of usage examples for com.google.gwt.core.client JavaScriptObject createObject

Introduction

In this page you can find the example usage for com.google.gwt.core.client JavaScriptObject createObject.

Prototype

public static native JavaScriptObject createObject() ;

Source Link

Document

Returns a new object.

Usage

From source file:com.thingtrack.com.vaadin.addons.slidedata.gwt.client.VIkarusBreadCrumb.java

License:Apache License

public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
    super.updateFromUIDL(uidl, client);
    id = uidl.getId();//  ww w. j a  va 2s .  c  o  m

    getWidget().getElement().setId("breadCrumb" + id);
    final IkarusJSBreadCrumbOptions options = JavaScriptObject.createObject().cast();
    options.setShowSpeed(uidl.getStringAttribute("showspeed"));
    options.setHideSpeed(uidl.getStringAttribute("hidespeed"));
    options.setCollapsible(uidl.getBooleanAttribute("collapsible"));
    options.setCollapsedWidth(uidl.getIntAttribute("collapsedwidth"));
    Scheduler.get().scheduleDeferred(new ScheduledCommand() {

        @Override
        public void execute() {
            breadCrumb(id, options);

        }
    });

}

From source file:com.vaadin.addon.charts.client.ui.HighchartConfig.java

public static HighchartConfig createFromServerSideString(String confStr, String jsonState) {
    HighchartConfig conf;/* w  ww  . j  a  v  a 2  s. c om*/
    if (confStr != null) {
        conf = (HighchartConfig) JSONParser.parseLenient(confStr).isObject().getJavaScriptObject();
        conf.prepare();
    } else {
        conf = JavaScriptObject.createObject().cast();
    }
    if (jsonState != null) {
        merge(conf, jsonState);
    }
    conf.initMouseOverHandler();

    return conf;
}

From source file:com.vaadin.client.ComponentDetailMap.java

License:Apache License

static ComponentDetailMap create() {
    return (ComponentDetailMap) JavaScriptObject.createObject();
}

From source file:com.vaadin.client.event.PointerEventSupportImplModernIE.java

License:Apache License

@Override
protected void init() {
    if (!inited) {
        JavaScriptObject eventDispatcherMapExtensions = JavaScriptObject.createObject();
        JavaScriptObject captureEventDispatcherMapExtensions = JavaScriptObject.createObject();
        for (EventType e : EventType.values()) {
            addEventDispatcher(e.getNativeEventName(), eventDispatcherMapExtensions);
            getPointerEventCaptureDispatchers(e.getNativeEventName(), captureEventDispatcherMapExtensions);
        }//w  w w. ja  v  a  2 s .c om
        DOMImplStandard.addBitlessEventDispatchers(eventDispatcherMapExtensions);
        DOMImplStandard.addCaptureEventDispatchers(captureEventDispatcherMapExtensions);

        inited = true;
    }
}

From source file:com.vaadin.client.FastStringMap.java

License:Apache License

public static <T> FastStringMap<T> create() {
    return JavaScriptObject.createObject().cast();
}

From source file:com.vaadin.client.FastStringSet.java

License:Apache License

public static FastStringSet create() {
    return JavaScriptObject.createObject().cast();
}

From source file:com.vaadin.client.JavaScriptConnectorHelper.java

License:Apache License

public JavaScriptConnectorHelper(ServerConnector connector) {
    this.connector = connector;

    // Wildcard rpc object
    rpcObjects.put("", JavaScriptObject.createObject());
}

From source file:com.vaadin.client.JavaScriptConnectorHelper.java

License:Apache License

protected JavaScriptObject createRpcObject(String iface, Set<String> methods) {
    JavaScriptObject object = JavaScriptObject.createObject();

    for (String method : methods) {
        attachRpcMethod(object, iface, method);
    }/*from   ww w  . ja  v  a2  s .  co m*/

    return object;
}

From source file:com.vaadin.pointerevents.client.ModernSupportImpl.java

License:Apache License

void doInit() {
    JavaScriptObject eventDispatcherMapExtensions = JavaScriptObject.createObject();
    JavaScriptObject captureEventDispatcherMapExtensions = JavaScriptObject.createObject();
    for (Events e : Events.values()) {
        addEventDispatcher(e.getNativeEventName(), eventDispatcherMapExtensions);
        getPointerEventCaptureDispatchers(e.getNativeEventName(), captureEventDispatcherMapExtensions);
    }/*from  w  w w . j a  va2 s  .com*/
    DOMImplStandard.addBitlessEventDispatchers(eventDispatcherMapExtensions);
    DOMImplStandard.addCaptureEventDispatchers(captureEventDispatcherMapExtensions);
}

From source file:edu.ucsd.idash.myosa.client.Series.java

License:Apache License

public static Series create() {
    return JavaScriptObject.createObject().cast();
}