private void setAdditives(PathContainerAdditiveCollection additives) { for(int x = 0; x < form.grdAdditive().getRows().size(); x++) { for(int y = 0; y < additives.size(); y++){ if(additives.get(y).equals(form.grdAdditive().getRows().get(x).getValue())) form.grdAdditive().getRows().get(x).setSelect(true); } } }
private void loadAdditives() { form.grdAdditive().getRows().clear(); ims.ocrr.vo.lookups.PathContainerAdditiveCollection lookupCollection = ims.ocrr.vo.lookups.LookupHelper.getPathContainerAdditive(this.domain.getLookupService()); for(int x = 0; x < lookupCollection.size(); x++) { GenForm.grdAdditiveRow row = form.grdAdditive().getRows().newRow(); row.setAdditive(lookupCollection.get(x).toString()); //added toString row.setValue(lookupCollection.get(x)); } }