Package pt.ist.fenixWebFramework.renderers.components

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


        for (int i = 0; i < level; i++) {
            final HtmlLink link = new HtmlLink();
            link.setModuleRelative(false);
            link.setUrl(DegreeCurricularPlanLayout.SPACER_IMAGE_PATH);

            final HtmlImage spacerImage = new HtmlImage();
            spacerImage.setSource(link.calculateUrl());

            final HtmlTableCell tabCell = row.createCell();
            tabCell.setClasses(getTabCellClass());
            tabCell.setBody(spacerImage);
        }
View Full Code Here


    @Override
    public HtmlComponent render(Object object, Class type) {
        File file = (File) object;

        HtmlImage image = new HtmlImage();

        image.setSource(file.getDownloadUrl());
        image.setTitle(file.getDisplayName());

        image.setClasses(classes);

        return image;
    }
View Full Code Here

        for (int i = 0; i < level; i++) {
            HtmlLink link = new HtmlLink();
            link.setModuleRelative(false);
            link.setUrl(StudentCurricularPlanLayout.SPACER_IMAGE_PATH);

            final HtmlImage spacerImage = new HtmlImage();
            spacerImage.setSource(link.calculateUrl());

            final HtmlTableCell tabCell = row.createCell();
            tabCell.setClasses(getTabCellClass());
            tabCell.setBody(spacerImage);
        }
View Full Code Here

        } 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&amp;email="
                        + email.getExternalId());
                span.addChild(img);
            } else {
                HtmlLink link = new HtmlLink();
                link.setModuleRelative(false);
View Full Code Here

        private HtmlComponent createImageContainer(Person person) {
            HtmlBlockContainer imageBlock = new HtmlBlockContainer();
            String imageSource =
                    person.isPhotoPubliclyAvailable() ? RenderUtils.getFormattedProperties(getFormatImageURL(), person) : getNoPhotoAvailableImage();
            HtmlImage image = new HtmlImage();
            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

            List<Attends> attendsResult = new ArrayList<Attends>(bean.getAttendsResult());
            Collections.sort(attendsResult, Attends.COMPARATOR_BY_STUDENT_NUMBER);
            for (Attends attends : attendsResult) {
                HtmlTableRow row = htmlTable.createRow();
                if (bean.getViewPhoto()) {
                    HtmlImage htmlImage = new HtmlImage();
                    htmlImage.setSource(RenderUtils.getContextRelativePath("") + "/user/photo/"
                            + attends.getRegistration().getStudent().getPerson().getUsername());
                    row.createCell().setBody(htmlImage);
                }
                row.createCell(attends.getRegistration().getStudent().getPerson().getUsername());
                row.createCell(attends.getRegistration().getNumber().toString());
View Full Code Here

                addValidator();

                final MetaSlotKey key = (MetaSlotKey) getInputContext().getMetaObject().getKey();
                final HtmlBlockContainer container = new HtmlBlockContainer();

                final HtmlImage image = new HtmlImage();
                image.setSource(getContext().getViewState().getRequest().getContextPath() + getJcaptchaUrl());
                image.setStyle(getImageStyle());
                container.addChild(image);

                final HtmlText text = new HtmlText(getResourceMessage("fenix.renderers.captcha.process"));
                text.setFace(Face.PARAGRAPH);
                text.setClasses(getTextStyle());
View Full Code Here

TOP

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

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.