Package pt.ist.fenixWebFramework.renderers.components

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlCheckBoxList.addOption()


            headerRow.createCell(BundleUtil.getString(Bundle.APPLICATION, "label.workingStudents"));

            HtmlCheckBoxList workingStudentCheckBoxList = new HtmlCheckBoxList();
            for (WorkingStudentSelectionType workingStudentSelectionType : WorkingStudentSelectionType.values()) {
                HtmlCheckBox option =
                        workingStudentCheckBoxList.addOption(
                                new HtmlLabel(BundleUtil.getString(Bundle.ENUMERATION,
                                        workingStudentSelectionType.getQualifiedName())), workingStudentSelectionType.name());
                option.setChecked(bean.getWorkingStudentTypes().contains(workingStudentSelectionType));
            }
            row.createCell().setBody(workingStudentCheckBoxList);
View Full Code Here


            HtmlCheckBoxList shiftCheckBoxList = new HtmlCheckBoxList();
            for (Shift shift : bean.getExecutionCourse().getAssociatedShifts()) {
                MetaObject shiftMetaObject = MetaObjectFactory.createObject(shift, new Schema(Shift.class));
                HtmlCheckBox option =
                        shiftCheckBoxList.addOption(new HtmlLabel(shift.getPresentationName()), shiftMetaObject.getKey()
                                .toString());
                option.setChecked(bean.getShifts().contains(shift));
            }
            row.createCell().setBody(shiftCheckBoxList);
View Full Code Here

            HtmlCheckBoxList dcpCheckBoxList = new HtmlCheckBoxList();
            for (DegreeCurricularPlan degreeCurricularPlan : bean.getExecutionCourse().getAttendsDegreeCurricularPlans()) {
                MetaObject dcpMetaObject =
                        MetaObjectFactory.createObject(degreeCurricularPlan, new Schema(DegreeCurricularPlan.class));
                HtmlCheckBox option =
                        dcpCheckBoxList.addOption(new HtmlLabel(degreeCurricularPlan.getName()), dcpMetaObject.getKey()
                                .toString());
                option.setChecked(bean.getDegreeCurricularPlans().contains(degreeCurricularPlan));
            }
            row.createCell().setBody(dcpCheckBoxList);
View Full Code Here

            headerRow.createCell(BundleUtil.getString(Bundle.APPLICATION, "label.selectStudents"));

            HtmlCheckBoxList attendsStateCheckBoxList = new HtmlCheckBoxList();
            for (StudentAttendsStateType attendsStateType : StudentAttendsStateType.values()) {
                HtmlCheckBox option =
                        attendsStateCheckBoxList.addOption(
                                new HtmlLabel(BundleUtil.getString(Bundle.ENUMERATION, attendsStateType.getQualifiedName())),
                                attendsStateType.name());
                option.setChecked(bean.getAttendsStates().contains(attendsStateType));
            }
            row.createCell().setBody(attendsStateCheckBoxList);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.