Package pt.ist.fenixWebFramework.renderers.components

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


                            link.setBody(getText(tag));
                            component = link;
                        } else {
                            component = getText(tag);
                        }
                        container.addChild(component);
                        i++;
                    }
                }
                if (getShowAllUrl() != null) {
                    HtmlLink link = new HtmlLink();
View Full Code Here


                    HtmlLink link = new HtmlLink();
                    link.setModuleRelative(isModuleRelative());
                    link.setContextRelative(isContextRelative());
                    link.setUrl(getShowAllUrl());
                    link.setBody(new HtmlText(RenderUtils.getResourceString("RENDERER_RESOURCES", "renderers.show.all")));
                    container.addChild(new HtmlText(" " + getSeparator() + " "));
                    container.addChild(link);
                }
                return container;
            }
View Full Code Here

                    link.setModuleRelative(isModuleRelative());
                    link.setContextRelative(isContextRelative());
                    link.setUrl(getShowAllUrl());
                    link.setBody(new HtmlText(RenderUtils.getResourceString("RENDERER_RESOURCES", "renderers.show.all")));
                    container.addChild(new HtmlText(" " + getSeparator() + " "));
                    container.addChild(link);
                }
                return container;
            }

            private HtmlComponent getText(UnitFileTag tag) {
View Full Code Here

                        value.setConverter(new GradeConverter(component.getValue()));
                    }

                });

                container.addChild(value);
                container.addChild(menu);

                return container;
            }
View Full Code Here

                    }

                });

                container.addChild(value);
                container.addChild(menu);

                return container;
            }

        };
View Full Code Here

                    }
                    HtmlTableCell right = row.createCell();
                    right.setClasses(getRightColumnClasses());
                    right.setStyle(getRightLineStyle());
                    right.setBody(getValue((PartyContact) meta.getObject()));
                    span.addChild(row);
                    rowIndex++;
                }
                return span;
            }
        };
View Full Code Here

        protected HtmlComponent getLinks(CompetenceCourse course) {
            HtmlInlineContainer container = new HtmlInlineContainer();
            int total = sortedLinks.size();
            for (int i = 0; i < total; i++) {
                TableLink tableLink = getTableLink(i);
                container.addChild(tableLink.generateLink(course));
                if (i + 1 < total) {
                    container.addChild(new HtmlText(getLinkGroupSeparator()));
                }
            }
            container.setIndented(false);
View Full Code Here

            int total = sortedLinks.size();
            for (int i = 0; i < total; i++) {
                TableLink tableLink = getTableLink(i);
                container.addChild(tableLink.generateLink(course));
                if (i + 1 < total) {
                    container.addChild(new HtmlText(getLinkGroupSeparator()));
                }
            }
            container.setIndented(false);
            return container;
View Full Code Here

        }

        private HtmlComponent getCurrentOrFutureCoursePresentation(CompetenceCourse course, CompetenceCourseGroupUnit group,
                DepartmentUnit department) {
            HtmlInlineContainer container = new HtmlInlineContainer();
            container.addChild(new HtmlText(course.getName()));
            container.addChild(new HtmlText(" ("));
            container.addChild(new HtmlText(course.getAcronym()));
            container.addChild(new HtmlText(") "));
            container.addChild(getStage(course.getCurricularStage()));
            if (course.getCompetenceCourseGroupUnit() != group) {
View Full Code Here

        private HtmlComponent getCurrentOrFutureCoursePresentation(CompetenceCourse course, CompetenceCourseGroupUnit group,
                DepartmentUnit department) {
            HtmlInlineContainer container = new HtmlInlineContainer();
            container.addChild(new HtmlText(course.getName()));
            container.addChild(new HtmlText(" ("));
            container.addChild(new HtmlText(course.getAcronym()));
            container.addChild(new HtmlText(") "));
            container.addChild(getStage(course.getCurricularStage()));
            if (course.getCompetenceCourseGroupUnit() != group) {
                container.addChild(new HtmlText(" ("));
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.