Package pt.ist.fenixWebFramework.renderers.schemas

Examples of pt.ist.fenixWebFramework.renderers.schemas.Schema


            }
        };

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

        if (studentCurriculumGroupBean.isToBeDisabled()) {
View Full Code Here


                        .getAccumulatedEctsCredits(enrolment.getExecutionPeriod()) : enrolment.getEctsCredits();
        ects.append(ectsCredits).append(" ").append(BundleUtil.getString(Bundle.STUDENT, "label.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);
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));
            }
View Full Code Here

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

            nameCell.setBody(new HtmlText(curriculumGroup.getFullPath()));
            nameCell.setClasses(getGroupNameClasses());

            final HtmlTableCell radioButtonCell = htmlTableRow.createCell();
            final HtmlRadioButton radioButton = radioButtonGroup.createRadioButton();
            radioButton.setUserValue(MetaObjectFactory.createObject(curriculumGroup, new Schema(CurriculumGroup.class)).getKey()
                    .toString());
            radioButton.setChecked(curriculumGroup == dismissalBean.getCurriculumGroup());
            radioButtonCell.setBody(radioButton);
            radioButtonCell.setClasses(getGroupRadioClasses());
            radioButtonCell.setStyle("width: 2em;");
View Full Code Here

            creditsMaxCell.setClasses("smalltxt");
            creditsMaxCell.setStyle("width: 6em;");

            final HtmlTableCell radioButtonCell = htmlTableRow.createCell();
            final HtmlRadioButton radioButton = radioButtonGroup.createRadioButton();
            radioButton.setUserValue(MetaObjectFactory.createObject(courseGroup, new Schema(CourseGroup.class)).getKey()
                    .toString());
            radioButton.setChecked(courseGroup == dismissalBean.getCourseGroup());
            radioButtonCell.setBody(radioButton);
            radioButtonCell.setClasses(getGroupRadioClasses());
            radioButtonCell.setStyle("width: 2em;");
View Full Code Here

        PageContainerBean bean = (PageContainerBean) object;
        setPageContainerBean(bean);

        List<? extends DomainObject> objects = getPageObjects(bean.getObjects());

        Schema schema = RenderKit.getInstance().findSchema(getSubSchema());
        MetaObject listMetaObject = MetaObjectFactory.createObject(objects, schema);

        PresentationContext context = getContext().createSubContext(listMetaObject);
        context.setRenderMode(RenderMode.OUTPUT);
View Full Code Here

            dataCell.setClasses(getInfoCellClasses());
            return table;
        }

        private HtmlComponent createInformationList(Person person, Class type) {
            Schema schema = RenderKit.getInstance().findSchema(getSubSchema());
            return renderValue(person, type, schema, getSubLayout(), getProperties());
        }
View Full Code Here

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

            final StringBuilder ects = new StringBuilder();
            ects.append(enrolment.getCurricularCourse().getEctsCredits()).append(" ")
                    .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);
View Full Code Here

TOP

Related Classes of pt.ist.fenixWebFramework.renderers.schemas.Schema

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.