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:org.gwtbootstrap3.extras.notify.client.ui.NotifySettings.java

License:Apache License

/**
 * Creates a new instance of {@link NotifySettings}.
 *
 * @return a new instance of {@link NotifySettings}.
 *//*from w w  w .j a v a2  s. c o  m*/
public static NotifySettings newSettings() {
    return JavaScriptObject.createObject().cast();
}

From source file:org.gwtbootstrap3.extras.select.client.ui.SelectOptions.java

License:Apache License

/**
 * Creates a new instance of {@link SelectOptions}.
 *
 * @return a new instance of {@link SelectOptions}.
 *///  ww  w . j  a  va 2  s.c  o  m
static SelectOptions newOptions() {
    SelectOptions options = JavaScriptObject.createObject().cast();
    options.init(Styles.FONT_AWESOME_BASE, IconType.CHECK.getCssName());
    return options;
}

From source file:org.gwtbootstrap3.extras.slider.client.ui.base.SliderBase.java

License:Apache License

@Override
protected void onLoad() {
    super.onLoad();
    final JavaScriptObject options = JavaScriptObject.createObject();
    if (formatterCallback != null) {
        setFormatterOption(options);//from   w w  w .j a  va2s  . c  o m
    }
    initSlider(getElement(), options);
    bindSliderEvents(getElement());
}

From source file:org.gwtbootstrap3.extras.summernote.client.ui.base.SummernoteOptions.java

License:Apache License

/**
 * Creates a new instance of {@link SummernoteOptions}.
 *
 * @return a new instance of {@link SummernoteOptions}.
 *///from   ww w .  j  a v a2 s.c om
static SummernoteOptions newOptions() {
    return JavaScriptObject.createObject().cast();
}

From source file:org.gwtbootstrap3.extras.tagsinput.client.ui.base.TagsInputOptions.java

License:Apache License

/**
 * Creates a new instance of {@link TagsInputOptions}.
 *
 * @return a new instance of {@link TagsInputOptions}.
 *//* w  ww.j a  v  a2  s .  co  m*/
@SuppressWarnings("rawtypes")
static TagsInputOptions create() {
    return JavaScriptObject.createObject().cast();
}

From source file:org.gwtbootstrap3.extras.tagsinput.client.ui.JSComplexTag.java

License:Apache License

/**
 * Creates a new instance of {@link JSComplexTag}.
 *
 * @return a new instance of {@link JSComplexTag}.
 *//*from  ww  w  . ja  v a  2 s. c o  m*/
public static JSComplexTag create() {
    return JavaScriptObject.createObject().cast();
}

From source file:org.gwtnode.modules.aws.core.events.StatusHeadersResponseEventHandler.java

License:Apache License

@Override
public void call(JavaScriptFunctionArguments args) {
    JavaScriptObject headers = args.get(1);
    if (headers == null)
        headers = JavaScriptObject.createObject();
    onEvent(args.<Integer>get(0), new JsonStringObjectMap<String>(headers), args.<Response>get(2));
}

From source file:org.gwtnode.modules.aws.core.HttpRequest.java

License:Apache License

/**
 * A map of header keys and their respective values.
 *///from   www .  j  a  v  a  2 s .  c  om
@GwtNodeProperty
public Map<String, String> headers() {
    JavaScriptObject headers = headers0();
    if (headers == null)
        headers = JavaScriptObject.createObject();
    return new JsonStringObjectMap<String>(headers);
}

From source file:org.gwtnode.modules.aws.core.HttpResponse.java

License:Apache License

/**
 * A map of response header keys and their respective values.
 *///from w w w  .ja  v a 2s . c om
@GwtNodeProperty
public final Map<String, String> headers() {
    JavaScriptObject headers = headers0();
    if (headers == null)
        headers = JavaScriptObject.createObject();
    return new JsonStringObjectMap<String>(headers);
}

From source file:org.gwtnode.modules.aws.core.Options.java

License:Apache License

@GwtNodeFunction("constructor")
public static final Options create() {
    return JavaScriptObject.createObject().cast();
}