private void populateTypeOfRequestGridWithValue(HospitalAtNightRequestType typeOfRequest) { if(typeOfRequest == null) return; for(int i=0; i<form.grdTypeRequest().getRows().size(); i++) { if(typeOfRequest.equals(form.grdTypeRequest().getRows().get(i).getValue())) { form.grdTypeRequest().getRows().get(i).setColSelect(true); return; } } }
private HospitalAtNightRequestType populateDataFromTypeOfRequestGrid() { for(int i=0; i<form.grdTypeRequest().getRows().size(); i++) { if(form.grdTypeRequest().getRows().get(i).getColSelect()) return form.grdTypeRequest().getRows().get(i).getValue(); } return null; }