Package pt.ist.fenixWebFramework.renderers.components

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlBlockContainer.addChild()


            this.curriculum = (Curriculum) object;

            final HtmlContainer container = new HtmlBlockContainer();

            if (this.curriculum == null) {
                container.addChild(createHtmlTextItalic(BundleUtil.getString(Bundle.STUDENT, "message.no.average")));

                return container;
            }

            if (!this.curriculum.getStudentCurricularPlan().isBoxStructure()) {
View Full Code Here


                return container;
            }

            if (!this.curriculum.getStudentCurricularPlan().isBoxStructure()) {
                container.addChild(createHtmlTextItalic(BundleUtil.getString(Bundle.STUDENT, "not.applicable")));

                return container;
            }

            if (this.curriculum.isEmpty()) {
View Full Code Here

                return container;
            }

            if (this.curriculum.isEmpty()) {
                container.addChild(createHtmlTextItalic(BundleUtil.getString(Bundle.STUDENT, "message.no.approvals")));

                return container;
            }

            if (this.curriculum.getCurriculumEntries().isEmpty()) {
View Full Code Here

                return container;
            }

            if (this.curriculum.getCurriculumEntries().isEmpty()) {
                container.addChild(createHtmlTextItalic(BundleUtil.getString(Bundle.STUDENT, "message.empty.curriculum")));
            } else {
                final HtmlContainer averageContainer = new HtmlBlockContainer();
                averageContainer.setStyle("padding-bottom: 3.5em;");
                container.addChild(averageContainer);
                final HtmlTable averageEntriesTable = new HtmlTable();
View Full Code Here

            } else {
                final HtmlContainer averageContainer = new HtmlBlockContainer();
                averageContainer.setStyle("padding-bottom: 3.5em;");
                container.addChild(averageContainer);
                final HtmlTable averageEntriesTable = new HtmlTable();
                averageContainer.addChild(averageEntriesTable);
                averageEntriesTable.setClasses(getTableClass());
                generateAverageRows(averageEntriesTable);
                generateAverageSums(averageEntriesTable);
            }
View Full Code Here

            if (isVisibleCurricularYearEntries()) {
                final HtmlContainer curricularYearContainer = new HtmlBlockContainer();
                container.addChild(curricularYearContainer);
                final HtmlTable curricularYearTable = new HtmlTable();
                curricularYearContainer.addChild(curricularYearTable);
                curricularYearTable.setClasses(getTableClass());
                generateCurricularYearRows(curricularYearTable);
                generateCurricularYearSums(curricularYearTable);
            }
View Full Code Here

            newContext.setProperties(new Properties());
            newContext.setRenderMode(RenderMode.OUTPUT);
            PersonalCardRenderer renderer = getCardRenderer();

            for (Person person : people) {
                container.addChild(RenderKit.getInstance().renderUsing(renderer, newContext, person, Person.class));
            }
            return container;
        }
    }
}
View Full Code Here

        public HtmlComponent createComponent(Object object, Class type) {
            Person person = (Person) object;
            HtmlBlockContainer container = new HtmlBlockContainer();
            container.setClasses(getClasses());
            HtmlTable table = createPersonalCard(person, type);
            container.addChild(table);
            return container;
        }

        private HtmlTable createPersonalCard(Person person, Class type) {
            HtmlTable table = new HtmlTable();
View Full Code Here

            image.setSource((isContextRelative() ? RenderUtils.getContextRelativePath("") : "") + imageSource);
            image.setWidth(getImageWidth());
            image.setHeight(getImageHeight());
            image.setName(getImageName());
            image.setDescription(getImageDescription());
            imageBlock.addChild(image);
            return imageBlock;
        }

    }
View Full Code Here

                // slot refered by name
                radioButtonGroup.bind(getInputContext().getMetaObject(), "courseGroup");

                radioButtonGroup.setConverter(new DomainObjectKeyConverter());
                container.addChild(radioButtonGroup);
                generateCourseGroupCycles(container, dismissalBean.getStudentCurricularPlan(), dismissalBean.getExecutionPeriod());

            } else if (dismissalTypeValue == DismissalType.CURRICULAR_COURSE_CREDITS) {
                final HtmlMultipleHiddenField hiddenCurricularCourses = new HtmlMultipleHiddenField();
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.