List of usage examples for com.google.gwt.core.client JsArrayString push
public final native void push(String value) ;
From source file:com.ait.toolkit.sencha.touch.charts.client.series.BaseSeries.java
License:Open Source License
public void setTitle(String... values) { JsArrayString peers = JsArrayString.createArray().cast(); for (String s : values) { peers.push(s); }/*from w w w . j av a2 s . co m*/ setTitle(peers); }
From source file:com.ait.toolkit.sencha.touch.charts.client.series.CartesianSeries.java
License:Open Source License
public void setAxis(Alignment... alignements) { JsArrayString strings = JsArrayString.createArray().cast(); for (Alignment alignement : alignements) { strings.push(alignement.getValue()); }/*from w ww . j a v a2 s . com*/ this.setAxis(strings); }
From source file:com.ait.toolkit.sencha.touch.charts.client.series.CartesianSeries.java
License:Open Source License
public void setXField(String... values) { JsArrayString strings = JsArray.createArray().cast(); for (String s : values) { strings.push(s); }/*from w ww. j a v a2s. c o m*/ setXField(strings); }
From source file:com.ait.toolkit.sencha.touch.charts.client.series.CartesianSeries.java
License:Open Source License
public void setYField(String... values) { JsArrayString strings = JsArray.createArray().cast(); for (String s : values) { strings.push(s); }/*from ww w .j a v a 2 s .c om*/ setYField(strings); }
From source file:com.ait.toolkit.sencha.touch.charts.client.series.GaugeSeries.java
License:Open Source License
public void setColorSet(Color... colors) { JsArrayString values = JsArrayString.createArray().cast(); for (Color c : colors) { values.push(c.getValue()); }//from w w w . j ava 2s.c om _setColorSet(values); }
From source file:com.ait.toolkit.sencha.touch.charts.client.series.PieSeries.java
License:Open Source License
/** * An array of color values which will be used, in order, as the pie slice * fill colors.//w w w . j av a 2s .c o m * * @param colors */ public void setColorSet(Color... colors) { JsArrayString strings = JsArrayString.createArray().cast(); for (Color color : colors) { strings.push(color.getValue()); } setColorSet(strings); }
From source file:com.ait.toolkit.sencha.touch.charts.client.theme.Theme.java
License:Open Source License
public static void defineTheme(String themeName, String baseColor, ArrayList<String> colors) { JsArrayString values = JsArray.createArray().cast(); for (String s : colors) { values.push(s); }/*from w w w .jav a 2 s. c om*/ defineTheme(themeName, baseColor, values); }
From source file:com.ait.toolkit.sencha.touch.ux.grid.client.core.NativeGrid.java
License:Open Source License
public static NativeGrid newInstance(Store store, List<GridColumn> cols, List<String> features) { JsArrayString values = JsArrayString.createArray().cast(); for (String s : features) { values.push(s); }// w w w . ja va 2 s .c o m JavaScriptObject obj = _createNative(store.getJsObj(), GridColumn.fromList(cols), values); return new NativeGrid(obj); }
From source file:com.ait.toolkit.sencha.touch.ux.grid.client.core.NativeGrid.java
License:Open Source License
public static NativeGrid newInstance(Store store, List<GridColumn> cols, List<String> features, boolean itemDisclosure) { JsArrayString values = JsArrayString.createArray().cast(); for (String s : features) { values.push(s); }//from ww w .j a va2s . co m JavaScriptObject obj = _createNative(store.getJsObj(), GridColumn.fromList(cols), values, itemDisclosure); return new NativeGrid(obj); }
From source file:com.ait.toolkit.sencha.touch.ux.ubergrid.client.core.NativeUberGrid.java
License:Open Source License
public static NativeUberGrid newInstance(Store store, List<UberGridColumn> cols, List<String> features) { JsArrayString values = JsArrayString.createArray().cast(); for (String s : features) { values.push(s); }// w w w . j a v a 2s .c o m JavaScriptObject obj = _createNative(store.getJsObj(), UberGridColumn.fromList(cols), values); return new NativeUberGrid(obj); }