private void populateListControl(LeisureActivityOnWardVoCollection onWardLeisureColl) { if(onWardLeisureColl == null) return; clear(); GenForm.grdDetailsRow row; for (int i =0; i < onWardLeisureColl.size();i++) { row = form.grdDetails().getRows().newRow(); row.setValue(onWardLeisureColl.get(i)); row.setColDate(onWardLeisureColl.get(i).getAuthoringDateTime().getDate()); row.setColActivity(onWardLeisureColl.get(i).getActivity()); row.setColComment(onWardLeisureColl.get(i).getComment()); //WDEV-15299 row.setTooltipForColDate(onWardLeisureColl.get(i).getAuthoringDateTime().getDate().toString()); row.setTooltipForColActivity(onWardLeisureColl.get(i).getActivity()); row.setTooltipForColComment(onWardLeisureColl.get(i).getComment()); } }
private void populateChildCollectionFromGrid(LeisureActivitiesVo voLeisureActivities) { //if (form.grdDetails().getValue() == null) return; for (int i=0; i < form.grdDetails().getRows().size(); i++) { if (voLeisureActivities.getOnWardLeisure() == null) voLeisureActivities.setOnWardLeisure(new LeisureActivityOnWardVoCollection()); voLeisureActivities.getOnWardLeisure().add(form.grdDetails().getRows().get(i).getValue()); } }