Package pt.ist.fenixWebFramework.renderers.components

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


        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));
View Full Code Here


            cell.setClasses(getLabelCellClass());
            final HtmlInlineContainer container = new HtmlInlineContainer();
            cell.setBody(container);

            if (isSelectable()) {
                final HtmlCheckBox checkBox = new HtmlCheckBox();
                checkBox.setName(getSelectionName());
                checkBox.setUserValue(dismissal.getExternalId().toString());
                container.addChild(checkBox);
            }

            final HtmlText text =
                    new HtmlText(BundleUtil.getString(Bundle.STUDENT, "label.dismissal."
View Full Code Here

                final int level, boolean allowSelection) {

            final HtmlInlineContainer inlineContainer = new HtmlInlineContainer();

            if (isSelectable() && allowSelection) {
                final HtmlCheckBox checkBox = new HtmlCheckBox();
                checkBox.setName(getSelectionName());
                checkBox.setUserValue(enrolment.getExternalId().toString());
                inlineContainer.addChild(checkBox);
            }

            inlineContainer.addChild(createCurricularCourseLink(getPresentationNameFor(enrolment),
                    enrolment.getCurricularCourse()));
View Full Code Here

                nameCell.setClasses(getCurricularCourseNameClasses());

                final HtmlTableCell checkBoxCell = htmlTableRow.createCell();
                checkBoxCell.setClasses(getCurricularCourseCheckBoxClasses());

                final HtmlCheckBox checkBox =
                        new HtmlCheckBox(dismissalBean.containsDismissalOrOptionalDismissal(curricularCourse));
                checkBox.setName("curricularCourseCheckBox" + curricularCourse.getExternalId());
                if (curricularCourse.isOptionalCurricularCourse()) {
                    final OptionalCurricularCourse optionalCurricularCourse = (OptionalCurricularCourse) curricularCourse;
                    checkBox.setUserValue(new DismissalBean.SelectedOptionalCurricularCourse(optionalCurricularCourse,
                            studentCurricularPlan).getKey());
                    checkBoxCell.setBody(checkBox);
                    optionalCurricularCoursesController.addCheckBox(checkBox);
                } else {
                    checkBox.setUserValue(new DismissalBean.SelectedCurricularCourse(curricularCourse, studentCurricularPlan)
                            .getKey());
                    checkBoxCell.setBody(checkBox);
                    curricularCoursesController.addCheckBox(checkBox);
                }
            }
View Full Code Here

            htmlTableRow.createCell().setBody(new HtmlText(curriculumModuleBean.getCurriculumModule().getName().getContent()));

            HtmlTableCell checkBoxCell = htmlTableRow.createCell();
            checkBoxCell.setClasses("aright");

            HtmlCheckBox checkBox = new HtmlCheckBox(true);
            MetaObject enrolmentMetaObject =
                    MetaObjectFactory.createObject(curriculumModuleBean.getCurriculumModule(), new Schema(CurriculumGroup.class));
            checkBox.setName("enrolmentCheckBox" + curriculumModuleBean.getCurriculumModule().getExternalId());
            checkBox.setUserValue(enrolmentMetaObject.getKey().toString());
            checkBoxCell.setBody(checkBox);

            if (!curriculumModuleBean.getGroupsEnroled().isEmpty()
                    || !curriculumModuleBean.getCurricularCoursesEnroled().isEmpty()) {
                checkBox.setDisabled(true);
            } else {
                enrollmentsController.addCheckBox(checkBox);
            }

            final HtmlTable coursesTable = new HtmlTable();
View Full Code Here

            htmlTableRow.setClasses(getGroupRowClasses());
            htmlTableRow.createCell().setBody(new HtmlText(degreeModuleToEnrol.getContext().getChildDegreeModule().getName()));
            HtmlTableCell checkBoxCell = htmlTableRow.createCell();
            checkBoxCell.setClasses("aright");

            HtmlCheckBox checkBox = new HtmlCheckBox(false);
            checkBox.setName("degreeModuleToEnrolCheckBox" + degreeModuleToEnrol.getContext().getExternalId() + ":"
                    + degreeModuleToEnrol.getCurriculumGroup().getExternalId());
            checkBox.setUserValue(degreeModuleToEnrol.getKey());
            degreeModulesToEnrolController.addCheckBox(checkBox);
            checkBoxCell.setBody(checkBox);
        }
View Full Code Here

                    ectsCell.setBody(new HtmlText(ects.toString()));

                    HtmlTableCell checkBoxCell = htmlTableRow.createCell();
                    checkBoxCell.setClasses(getCurricularCourseCheckBoxClasses());

                    HtmlCheckBox checkBox = new HtmlCheckBox(false);
                    checkBox.setName("degreeModuleToEnrolCheckBox" + degreeModuleToEnrol.getContext().getExternalId() + ":"
                            + degreeModuleToEnrol.getCurriculumGroup().getExternalId());
                    checkBox.setUserValue(degreeModuleToEnrol.getKey());
                    degreeModulesToEnrolController.addCheckBox(checkBox);
                    checkBoxCell.setBody(checkBox);
                } else {
                    final HtmlTableCell cell = htmlTableRow.createCell();
                    cell.setClasses(getCurricularCourseEctsClasses());
View Full Code Here

                    .append(BundleUtil.getString(Bundle.ACADEMIC, "credits.abbreviation"));
            ectsCell.setBody(new HtmlText(ects.toString()));

            MetaObject enrolmentMetaObject = MetaObjectFactory.createObject(enrolment, new Schema(Enrolment.class));

            HtmlCheckBox checkBox = new HtmlCheckBox(true);
            checkBox.setName("enrolmentCheckBox" + enrolment.getExternalId());
            checkBox.setUserValue(enrolmentMetaObject.getKey().toString());
            enrollmentsController.addCheckBox(checkBox);

            HtmlTableCell cellCheckBox = htmlTableRow.createCell();
            cellCheckBox.setClasses(getEnrolmentCheckBoxClasses());
            cellCheckBox.setBody(checkBox);
View Full Code Here

TOP

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

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.