List of usage examples for com.google.gwt.core.client JsArrayString push
public final native void push(String value) ;
From source file:com.ait.ext4j.client.chart.theme.Theme.java
License:Apache License
public static void defineTheme(String themeName, String baseColor, String... colors) { JsArrayString values = JsArray.createArray().cast(); for (String s : colors) { values.push(s); }//w w w . j av a2 s . c om defineTheme(themeName, baseColor, values); }
From source file:com.ait.ext4j.client.core.Component.java
License:Apache License
/** * Relays selected events from the specified Observable as if the events * were fired by this./* ww w .j a v a 2 s. c o m*/ * * @param observable * @param events */ public void relayEvents(Component observable, String... events) { JsArrayString values = JsArrayString.createArray().cast(); for (String s : events) { values.push(s); } relayEvents(observable, values); }
From source file:com.ait.ext4j.client.core.Component.java
License:Apache License
/** * Relays selected events from the specified Observable as if the events * were fired by this./* w w w .j av a 2s . c o m*/ * * @param observable * @param events */ public void relayEvents(JsObject observable, String... events) { JsArrayString values = JsArrayString.createArray().cast(); for (String s : events) { values.push(s); } relayEvents(observable, values); }
From source file:com.ait.ext4j.client.core.ExtElement.java
License:Apache License
/** * Adds one or more CSS classes to the element. Duplicate classes are * automatically filtered out. filtered out. * /*from w w w. j av a2 s . c om*/ * @return this */ public ExtElement addCls(List<String> values) { JsArrayString classes = JsArrayString.createArray().cast(); for (String string : values) { classes.push(string); } return _addCls(classes); }
From source file:com.ait.ext4j.client.core.ExtElement.java
License:Apache License
/** * Adds one or more CSS classes to the element. Duplicate classes are * automatically filtered out. filtered out. * // w w w . j av a 2s. com * @return this */ public ExtElement addCls(String... values) { JsArrayString classes = JsArrayString.createArray().cast(); for (String string : values) { classes.push(string); } return _addCls(classes); }
From source file:com.ait.ext4j.client.core.Template.java
License:Apache License
/** * Applies the supplied values to the template and appends the new node(s) * to the specified el.//from w ww . jav a 2 s .co m */ public void append(String id, String... values) { JsArrayString arr = JsArray.createArray().cast(); for (String s : values) { arr.push(s); } append(id, arr); }
From source file:com.ait.ext4j.client.core.Template.java
License:Apache License
/** * Applies the supplied values to the template and appends the new node(s) * to the specified el./*from w w w .j ava 2 s .co m*/ */ public void append(ExtElement el, String... values) { JsArrayString arr = JsArray.createArray().cast(); for (String s : values) { arr.push(s); } append(el, arr); }
From source file:com.ait.ext4j.client.data.Store.java
License:Apache License
/** * The collection of sorters currently applied to this Store *//*from ww w . ja v a 2 s. c o m*/ public void setSorters(List<String> sorters) { JsArrayString values = JsArrayString.createArray().cast(); for (String s : sorters) { values.push(s); } _setSorters(values); }
From source file:com.ait.ext4j.client.data.Store.java
License:Apache License
/** * The collection of sorters currently applied to this Store * /*w w w . j a v a2s.c o m*/ * @param value */ public void setSorters(String... sorters) { JsArrayString values = JsArrayString.createArray().cast(); for (String s : sorters) { values.push(s); } _setSorters(values); }
From source file:com.ait.ext4j.client.field.Field.java
License:Apache License
/** * Display one or more error messages associated with this field, using * msgTarget to determine how to display the messages and applying * invalidCls to the field's UI element. * <p>/*from www .j a v a 2 s . c om*/ * <b>Note</b>: this method does not cause the Field's validate or isValid * methods to return false if the value does pass validation. So simply * marking a Field as invalid will not prevent submission of forms submitted * with the Ext.form.action.Submit.clientValidation option set. */ public void markInvalid(String... values) { JsArrayString peers = JsArray.createArray().cast(); for (String s : values) { peers.push(s); } _markInvalid(peers); }