Example usage for com.google.gwt.core.client JsArrayMixed cast

List of usage examples for com.google.gwt.core.client JsArrayMixed cast

Introduction

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

Prototype

@Override
@SuppressWarnings("unchecked")
public <T extends JavascriptObjectEquivalent> T cast() 

Source Link

Document

A helper method to enable cross-casting from any JavaScriptObject type to any other JavaScriptObject type.

Usage

From source file:com.ait.lienzo.client.core.shape.Attributes.java

License:Open Source License

public final DashArray getDashArray() {
    JsArrayMixed dash = getArray(Attribute.DASH_ARRAY.getProperty());

    if (null != dash) {
        NFastDoubleArrayJSO djso = dash.cast();

        return new DashArray(djso);
    }// w w w.j  av  a2 s.c o m
    return new DashArray();
}

From source file:com.ait.lienzo.test.stub.Attributes.java

License:Open Source License

public final DashArray getDashArray() {
    final JsArrayMixed dash = getArray(Attribute.DASH_ARRAY.getProperty());

    if (null != dash) {
        final NFastDoubleArrayJSO djso = dash.cast();

        return new DashArray(djso);
    }/*from   ww w  .j  a va  2 s  .co m*/
    return new DashArray();
}

From source file:com.emitrom.lienzo.client.core.shape.Attributes.java

License:Open Source License

public final DashArray getDashArray() {
    JsArrayMixed dash = getArray(Attribute.DASH_ARRAY.getProperty());

    if (null != dash) {
        DashArrayJSO djso = dash.cast();

        return new DashArray(djso);
    }//ww w  . jav a  2  s  .c om
    return new DashArray();
}