Package pt.ist.fenixWebFramework.renderers.layouts

Examples of pt.ist.fenixWebFramework.renderers.layouts.Layout


    private String address;

    @Override
    protected Layout getLayout(Object object, Class type) {
        return new Layout() {
            @Override
            public HtmlComponent createComponent(Object object, Class type) {

                if (object == null) {
                    return new HtmlText();
View Full Code Here


        this.styles = styles;
    }

    @Override
    protected Layout getLayout(Object object, Class type) {
        return new Layout() {

            @Override
            public HtmlComponent createComponent(Object object, Class type) {
                Collection<UnitFileTag> tags =
                        (getSortBy() != null) ? RenderUtils.sortCollectionWithCriteria((Collection<UnitFileTag>) object,
View Full Code Here

        this.visibleIf = visibleIf;
    }

    @Override
    protected Layout getLayout(Object object, Class type) {
        final Layout layout = super.getLayout(object, type);

        return new Layout() {

            @Override
            public HtmlComponent createComponent(Object object, Class type) {
                Boolean visible = Boolean.FALSE;
                try {
                    visible = (Boolean) RendererPropertyUtils.getProperty(getTargetObject(object), getVisibleIf(), false);
                } catch (ClassCastException e) {
                    logger.error(e.getMessage(), e);
                }

                if (visible) {
                    return layout.createComponent(object, type);
                } else {
                    String text = getText();
                    return (text != null) ? new HtmlText(text) : renderValue(object,
                            RenderKit.getInstance().findSchema(getSubSchema()), getSubLayout());
                }
View Full Code Here

    private String size;

    @Override
    protected Layout getLayout(Object object, Class type) {
        return new Layout() {

            @Override
            public HtmlComponent createComponent(Object object, Class type) {
                Grade grade = (Grade) object;
                HtmlInlineContainer container = new HtmlInlineContainer();
View Full Code Here

    private String text;

    @Override
    protected Layout getLayout(Object object, Class type) {
        return new Layout() {

            @Override
            public HtmlComponent createComponent(Object object, Class type) {
                if (object != null && object instanceof File) {
                    File file = (File) object;
View Full Code Here

    private String rightLineStyle;

    @Override
    protected Layout getLayout(Object unfiltered, Class type) {
        return new Layout() {
            @Override
            public HtmlComponent createComponent(Object unfiltered, Class type) {
                List<MetaObject> contacts = getFilteredContacts((Collection<PartyContact>) unfiltered);
                if (contacts.isEmpty()) {
                    return new HtmlText();
View Full Code Here

public class TestGradeRenderer extends OutputRenderer {

    @Override
    protected Layout getLayout(Object object, Class type) {
        return new Layout() {

            @Override
            public HtmlComponent createComponent(Object object, Class type) {
                if (object == null) {
                    return new HtmlText(RenderUtils.getResourceString("ENUMERATION_RESOURCES", "msg.enrolled"));
View Full Code Here

public class ShiftPlainRenderer extends OutputRenderer {

    @Override
    protected Layout getLayout(Object object, Class type) {
        return new Layout() {

            @Override
            public HtmlComponent createComponent(Object object, Class type) {
                if (object == null) {
                    return new HtmlText();
View Full Code Here

        this.jcaptchaUrl = jcaptchaUrl;
    }

    @Override
    protected Layout getLayout(Object object, Class type) {
        return new Layout() {

            protected String getResourceMessage(String message) {
                return RenderUtils.getResourceString("RENDERER_RESOURCES", message);
            }
View Full Code Here

TOP

Related Classes of pt.ist.fenixWebFramework.renderers.layouts.Layout

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.