Examples of HtmlImage


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

        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

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

            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

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

                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
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.