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

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


        }
    }
   
    @Override
    public FormItemRepresentation getRepresentation() {
        SummaryRepresentation rep = super.getRepresentation(new SummaryRepresentation());
        rep.setCssClassName(this.cssClassName);
        rep.setDir(this.dir);
        rep.setId(this.id);
        rep.setScrollLeft(this.scrollLeft);
        rep.setScrollTop(this.scrollTop);
        rep.setI18n(this.getI18nMap());
        rep.setItems(this.listWidget.getItems());
        return rep;
    }
View Full Code Here


    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof SummaryRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "SummaryRepresentation"));
        }
        super.populate(rep);
        SummaryRepresentation srep = (SummaryRepresentation) rep;
        this.cssClassName = srep.getCssClassName();
        this.dir = srep.getDir();
        if (srep.getWidth() != null && !"".equals(srep.getWidth())) {
            setWidth(srep.getWidth());
        }
        if (srep.getHeight() != null && !"".equals(srep.getHeight())) {
            setHeight(srep.getHeight());
        }
       
        this.utils.saveI18nMap(srep.getI18n());
        this.id = srep.getId();
        this.scrollLeft = srep.getScrollLeft();
        this.scrollTop = srep.getScrollTop();
       
        populate(this.listWidget);
    }
View Full Code Here

TOP

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

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.