List of usage examples for com.google.gwt.core.client JsArrayInteger push
public final native void push(int value) ;
From source file:org.rstudio.core.client.js.JsUtil.java
License:Open Source License
public static JsArrayInteger toJsArrayInteger(Iterable<Integer> integers) { JsArrayInteger result = JsArrayInteger.createArray().cast(); for (Integer i : integers) result.push(i); return result; }
From source file:org.rstudio.studio.client.common.r.roxygen.RoxygenHelper.java
License:Open Source License
private static JsArrayInteger setdiffIndices(JsArrayString self, JsArrayString other) { JsArrayInteger result = JsArray.createArray().cast(); for (int i = 0; i < self.length(); i++) if (!contains(other, self.get(i))) result.push(i); return result; }
From source file:org.sigmah.offline.js.CategoryTypeJS.java
License:Open Source License
public void setCategoryElements(List<CategoryElementDTO> categoryElements) { if (categoryElements != null) { final JsArrayInteger array = (JsArrayInteger) JavaScriptObject.createArray(); for (final CategoryElementDTO categoryElementDTO : categoryElements) { array.push(categoryElementDTO.getId()); }//from w w w .j a va2s.c om setCategoryElements(array); } }
From source file:org.sigmah.offline.js.ExpectedResultJS.java
License:Open Source License
public void setIndicators(List<IndicatorDTO> indicators) { if (indicators != null) { final JsArrayInteger array = (JsArrayInteger) JavaScriptObject.createArray(); for (final IndicatorDTO indicator : indicators) { array.push(indicator.getId()); }//from w ww . j av a2s . c om setIndicators(array); } }
From source file:org.sigmah.offline.js.OrgUnitJS.java
License:Open Source License
public static JsArrayInteger toArray(Set<OrgUnitDTO> children) { if (children == null) { return null; }//w w w. j a va2 s . c o m final JsArrayInteger array = (JsArrayInteger) JavaScriptObject.createArray(); for (final OrgUnitDTO child : children) { array.push(child.getId()); } return array; }
From source file:org.sigmah.offline.js.PhaseModelJS.java
License:Open Source License
public void setSuccessors(List<PhaseModelDTO> successors) { if (successors != null) { final JsArrayInteger array = (JsArrayInteger) JavaScriptObject.createArray(); for (final PhaseModelDTO phaseModelDTO : successors) { array.push(phaseModelDTO.getId()); }/* www. j a va 2 s . co m*/ setSuccessors(array); } }
From source file:org.sigmah.offline.js.ProjectJS.java
License:Open Source License
public void setPhases(List<PhaseDTO> phases) { if (phases != null) { final JsArrayInteger array = (JsArrayInteger) JavaScriptObject.createArray(); for (final PhaseDTO phase : phases) { array.push(phase.getId()); }/*ww w.jav a2 s. c o m*/ setPhases(array); } }
From source file:org.sigmah.offline.js.ProjectJS.java
License:Open Source License
public void setValues(List<ValueDTO> values) { if (values != null) { final JsArrayInteger array = (JsArrayInteger) JavaScriptObject.createArray(); for (final ValueDTO value : values) { array.push(value.getId()); }/*from w w w. j a v a 2s . c o m*/ setValues(array); } }
From source file:org.sigmah.offline.js.ProjectModelJS.java
License:Open Source License
public void setPhaseModels(List<PhaseModelDTO> phaseModels) { if (phaseModels != null) { final JsArrayInteger array = (JsArrayInteger) JavaScriptObject.createArray(); for (final PhaseModelDTO phaseModel : phaseModels) { array.push(phaseModel.getId()); }/* w ww .ja v a2 s. c o m*/ setPhaseModels(array); } }
From source file:org.thechiselgroup.choosel.protovis.client.jsutil.JsUtils.java
License:Apache License
public final static JsArrayInteger toJsArrayInteger(int... values) { JsArrayInteger array = createJsArrayInteger(); for (int value : values) { array.push(value); }/*from w ww. j av a 2 s . c om*/ return array; }