/** * Function used to populate Service list to query combo-box * @param services */ private void populateServices(ServiceForElectiveListConfigVoCollection services) { // Clear Service query combo-box form.lyrMain().tabPageSearchCriteria().qmbService().clear(); // Check if the service collection has data if (services == null) return; // Add services to query combo-box for (ServiceForElectiveListConfigVo service : services) { form.lyrMain().tabPageSearchCriteria().qmbService().newRow(service, service.getServiceName()); } // If there is only one value - default to it, else show the query combo-box opened if (services.size() == 1) form.lyrMain().tabPageSearchCriteria().qmbService().setValue(services.get(0)); else form.lyrMain().tabPageSearchCriteria().qmbService().showOpened(); }
private String populateTooltipForColService(ServiceForElectiveListConfigVo service) { return "Service: "+service.getServiceName() + "<br>Specialty: " +(service.getSpecialtyIsNotNull() ? service.getSpecialty().getText() : ""); }
private void populateSpecialtyFromSearchCriteria(ServiceForElectiveListConfigVo service) { form.lblSpecialtyValueSearchCriteria().setValue(service!=null && service.getSpecialty()!=null? service.getSpecialty().getText() : null); }
private void populateSpecialtyFromDetailsContainer(ServiceForElectiveListConfigVo service) { form.ctnDetails().lblSpecialtyValueDetails().setValue(service!=null && service.getSpecialty()!=null? service.getSpecialty().getText() : null); }