Package org.jbpm.formapi.shared.api.items

Examples of org.jbpm.formapi.shared.api.items.ImageRepresentation


        }
    }

    @Override
    public FormItemRepresentation getRepresentation() {
        ImageRepresentation rep = super.getRepresentation(new ImageRepresentation());
        rep.setAltText(this.altText);
        rep.setUrl(this.url);
        rep.setId(this.id);
        rep.setI18n(getI18nMap());
        return rep;
    }
View Full Code Here


    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof ImageRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "ImageRepresentation"));
        }
        super.populate(rep);
        ImageRepresentation irep = (ImageRepresentation) rep;
        this.altText = irep.getAltText();
        this.url = irep.getUrl();
        this.id = irep.getId();
        saveI18nMap(irep.getI18n());
        if (this.altText == null || "".equals(this.altText)) {
            String i18nAltText = getI18n("default");
            if (i18nAltText != null) {
                this.altText = i18nAltText;
            }
View Full Code Here

TOP

Related Classes of org.jbpm.formapi.shared.api.items.ImageRepresentation

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.