Package pt.ist.fenixWebFramework.renderers.components

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlCheckBoxList


        }

        private void createWorkingStudentSearch(HtmlTableRow row, HtmlTableRow headerRow) {
            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);

            workingStudentCheckBoxList.bind(getInputContext().getMetaObject(), "workingStudentTypes");
            workingStudentCheckBoxList.setConverter(new EnumArrayConverter(WorkingStudentSelectionType.class));
            workingStudentCheckBoxList.setSelectAllShown(true);

        }
View Full Code Here


        }

        private void createShiftSearch(HtmlTableRow row, HtmlTableRow headerRow) {
            headerRow.createCell(BundleUtil.getString(Bundle.APPLICATION, "label.selectShift"));

            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);

            shiftCheckBoxList.bind(getInputContext().getMetaObject(), "shifts");
            shiftCheckBoxList.setConverter(new DomainObjectKeyArrayConverter());
            shiftCheckBoxList.setSelectAllShown(true);

        }
View Full Code Here

        }

        private void createDCPSearch(HtmlTableRow row, HtmlTableRow headerRow) {
            headerRow.createCell(BundleUtil.getString(Bundle.APPLICATION, "label.attends.courses"));

            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);

            dcpCheckBoxList.bind(getInputContext().getMetaObject(), "degreeCurricularPlans");
            dcpCheckBoxList.setConverter(new DomainObjectKeyArrayConverter());
            dcpCheckBoxList.setSelectAllShown(true);
        }
View Full Code Here

        }

        private void createAttendsStateTypeSearch(HtmlTableRow row, HtmlTableRow headerRow) {
            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);

            attendsStateCheckBoxList.bind(getInputContext().getMetaObject(), "attendsStates");
            attendsStateCheckBoxList.setConverter(new EnumArrayConverter(StudentAttendsStateType.class));
            attendsStateCheckBoxList.setSelectAllShown(true);
        }
View Full Code Here

TOP

Related Classes of pt.ist.fenixWebFramework.renderers.components.HtmlCheckBoxList

Copyright © 2018 www.massapicom. 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.