Beispiel #1
0
 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);
 }
Beispiel #3
0
 public JsArrayString getCategories() {
   final JSObject property = getJSObject().getProperty(Property.CATEGORIES);
   if (property == null) {
     return JsArrayString.createArray().cast();
   } else {
     return property.cast();
   }
 }
Beispiel #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);
 }
Beispiel #5
0
 public PrefValue<JsArrayString> spellingCustomDictionaries() {
   return object(
       "spelling_custom_dictionaries", JsArrayString.createArray().<JsArrayString>cast());
 }