Esempio n. 1
0
 public void setDepthColors(String... values) {
   JsArrayString peers = JsArrayString.createArray().cast();
   for (String s : values) {
     peers.push(s);
   }
   this.setDepthColors(peers);
 }
Esempio n. 2
0
 /**
  * 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);
 }
Esempio n. 3
0
 public JsArrayString getCategories() {
   final JSObject property = getJSObject().getProperty(Property.CATEGORIES);
   if (property == null) {
     return JsArrayString.createArray().cast();
   } else {
     return property.cast();
   }
 }
Esempio n. 4
0
 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);
 }
Esempio n. 5
0
 public PrefValue<JsArrayString> spellingCustomDictionaries() {
   return object(
       "spelling_custom_dictionaries", JsArrayString.createArray().<JsArrayString>cast());
 }