private void populateAssessmentQueryCombo(String value) { form.qmbAssessment().clear(); UserAssessmentForWhiteboardConfigVoCollection coll = domain.listAssessments(value); for (int i = 0; i < coll.size(); i++) { UserAssessmentForWhiteboardConfigVo userAssess = coll.get(i); form.qmbAssessment().newRow(userAssess, userAssess.getName().toString()); } if (coll.size() == 1) { form.qmbAssessment().setValue(coll.get(0)); } else if (coll.size() > 1) { form.qmbAssessment().showOpened(); } }
private void populateScreenFromData(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig) { clearScreen(); if (whiteBoardAssessmentConfig==null) return; if (whiteBoardAssessmentConfig.getName() != null) { UserAssessmentForWhiteboardConfigVo tempUA = new UserAssessmentForWhiteboardConfigVo(); form.qmbAssessment().newRow(tempUA, whiteBoardAssessmentConfig.getName()); form.qmbAssessment().setValue(tempUA); } if (whiteBoardAssessmentConfig.getIcon() != null) { Image img =engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage()); form.qmbIcon().newRow(img, img.getImagePath()); form.qmbIcon().setValue(img); form.imgAssessment().setValue(img); } form.txtTaxonomy().setValue(whiteBoardAssessmentConfig.getMAXIMSMappingValue()); }
private void populateAssessmentQueryCombo(String value) { form.qmbAssessment().clear(); UserAssessmentForWhiteboardConfigVoCollection coll = domain.listAssessments(value); for (int i = 0; i < coll.size(); i++) { UserAssessmentForWhiteboardConfigVo userAssess = coll.get(i); form.qmbAssessment().newRow(userAssess, userAssess.getName().toString()); } if (coll.size() == 1) { form.qmbAssessment().setValue(coll.get(0)); } else if (coll.size() > 1) { form.qmbAssessment().showOpened(); } form.txtName().setValue(form.qmbAssessment().getValue()!=null ? form.qmbAssessment().getValue().getName() : null); }