Examples of HtmlText


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

        }

        private HtmlComponent createDegreeCurricularPlanNameLink(final DegreeCurricularPlan degreeCurricularPlan,
                ExecutionSemester executionSemester) {
            if (degreeCurricularPlan.isPast() || degreeCurricularPlan.isEmpty()) {
                return new HtmlText(degreeCurricularPlan.getName());
            }

            final HtmlLink result = new HtmlLink();

            result.setText(degreeCurricularPlan.getName());
View Full Code Here

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

        }

        private HtmlLink createCurricularCourseLink(final String text, final CurricularCourse curricularCourse) {

            final HtmlLink result = new HtmlLink();
            result.setBody(new HtmlText(text));
            result.setModuleRelative(false);
            result.setTarget(HtmlLink.Target.BLANK);

            result.setParameter("degreeID", curricularCourse.getDegreeCurricularPlan().getDegree().getExternalId());
            result.setParameter("curricularCourseID", curricularCourse.getExternalId());
View Full Code Here

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

            return result;
        }

        private HtmlLink createExecutionCourseStatisticsLink(final String text, final ExecutionCourse executionCourse) {
            final HtmlLink result = new HtmlLink();
            result.setBody(new HtmlText(text));
            result.setParameter("executionCourseId", executionCourse.getExternalId());
            result.setParameter("method", "showExecutionCourseStatistics");
            result.setModuleRelative(false);
            result.setUrl("/student/showStudentStatistics.do");
            return result;
View Full Code Here

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

            return container;
        }

        private HtmlText createHtmlTextItalic(final String message) {
            final HtmlText htmlText = new HtmlText(message);
            htmlText.setClasses("italic");

            return htmlText;
        }
View Full Code Here

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

        private void generateCodeAndNameCell(final HtmlTableRow enrolmentRow, final ICurriculumEntry entry, final int level,
                boolean allowSelection) {

            final HtmlInlineContainer inlineContainer = new HtmlInlineContainer();
            inlineContainer.addChild(new HtmlText(getPresentationNameFor(entry)));

            final HtmlTableCell cell = enrolmentRow.createCell();
            cell.setClasses(getLabelCellClass());
            cell.setColspan(MAX_COL_SPAN_FOR_TEXT_ON_CURRICULUM_LINES - (entry instanceof ExternalEnrolment ? 1 : 0) - level);
            cell.setBody(inlineContainer);
View Full Code Here

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

            final HtmlTableCell cell = row.createCell();
            cell.setClasses(cssClass);
            cell.setColspan(colSpan);

            final HtmlInlineContainer span = new HtmlInlineContainer();
            span.addChild(new HtmlText(text));
            span.setTitle(title);

            cell.setBody(span);
        }
View Full Code Here

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

        final HtmlTableCell cell = row.createCell();
        cell.setClasses(cssClass);
        cell.setColspan(colSpan);

        final HtmlInlineContainer span = new HtmlInlineContainer();
        span.addChild(new HtmlText(text));
        span.setTitle(title);

        cell.setBody(span);
    }
View Full Code Here

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

            }
            return container;
        }

        private HtmlComponent getStage(CurricularStage curricularStage) {
            HtmlText text = new HtmlText(RenderUtils.getEnumString(curricularStage));

            switch (curricularStage) {
            case DRAFT:
                text.setClasses(getDraftClass());
                break;
            case PUBLISHED:
                text.setClasses(getPublishedClass());
                break;
            case APPROVED:
                text.setClasses(getApprovedClass());
                break;
            }

            return text;
        }
View Full Code Here

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

    }

    protected HtmlComponent getValue(PartyContact contact) {
        HtmlInlineContainer span = new HtmlInlineContainer();
        if (contact instanceof Phone) {
            span.addChild(new HtmlText(((Phone) contact).getNumber()));
        } else if (contact instanceof MobilePhone) {
            span.addChild(new HtmlText(((MobilePhone) contact).getNumber()));
        } else if (contact instanceof EmailAddress) {
            EmailAddress email = (EmailAddress) contact;
            if (isPublicSpace()) {
                HtmlImage img = new HtmlImage();
                img.setSource(RenderUtils.getContextRelativePath("") + "/publico/viewHomepage.do?method=emailPng&email="
                        + email.getExternalId());
                span.addChild(img);
            } else {
                HtmlLink link = new HtmlLink();
                link.setModuleRelative(false);
                link.setContextRelative(false);
                link.setUrl("mailto:" + email.getValue());
                link.setBody(new HtmlText(email.getValue()));
                span.addChild(link);
            }
        } else if (contact instanceof WebAddress) {
            HtmlLink link = new HtmlLink();
            link.setModuleRelative(false);
            link.setContextRelative(false);
            link.setUrl(((WebAddress) contact).getPresentationValue());
            link.setBody(new HtmlText(((WebAddress) contact).getPresentationValue()));
            span.addChild(link);
        }
        if (showType || (showDefault && contact.isDefault())) {
            StringBuilder suffix = new StringBuilder();
            suffix.append(" (");
            if (showType) {
                suffix.append(RenderUtils.getEnumString(contact.getType()));
            }
            if (showDefault && contact.isDefault()) {
                if (showType) {
                    suffix.append(", ");
                }
                suffix.append(RenderUtils.getResourceString(getBundle(), getDefaultLabel()));
            }
            suffix.append(")");
            span.addChild(new HtmlText(suffix.toString()));
        }
        return span;
    }
View Full Code Here

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

            studentOptionalEnrolmentBean = (StudentOptionalEnrolmentBean) object;

            HtmlBlockContainer container = new HtmlBlockContainer();

            if (studentOptionalEnrolmentBean == null) {
                return new HtmlText();
            }

            if (studentOptionalEnrolmentBean.getDegreeCurricularPlan().isBoxStructure()) {
                generateCourseGroup(container, studentOptionalEnrolmentBean.getDegreeCurricularPlan().getRoot(), 0);
            } else {
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.