public void setDepthColors(String... values) { JsArrayString peers = JsArrayString.createArray().cast(); for (String s : values) { peers.push(s); } this.setDepthColors(peers); }
/** * IDs of map types to show in the control. * * @param ids */ public final void setMapTypeIds(ArrayList<MapTypeId> ids) { JsArrayString strings = JsArrayString.createArray().cast(); for (MapTypeId id : ids) { strings.push(id.getValue()); } setMapTypeIds(strings); }
public JsArrayString getCategories() { final JSObject property = getJSObject().getProperty(Property.CATEGORIES); if (property == null) { return JsArrayString.createArray().cast(); } else { return property.cast(); } }
public void setCategories(final String[] categories) { final JsArrayString array = JsArrayString.createArray().cast(); for (final String category : categories) { array.push(category); } final JSObject jsObject = array.cast(); getJSObject().setProperty(Property.CATEGORIES, jsObject); }
public PrefValue<JsArrayString> spellingCustomDictionaries() { return object( "spelling_custom_dictionaries", JsArrayString.createArray().<JsArrayString>cast()); }