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

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


    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof FieldSetPanelRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "FieldSetPanelRepresentation"));
        }
        super.populate(rep);
        FieldSetPanelRepresentation fsrep = (FieldSetPanelRepresentation) rep;
       
        this.cssClassName = fsrep.getCssClassName();
        this.id = fsrep.getId();
        this.legend = fsrep.getLegend();
        if (fsrep.getWidth() != null && !"".equals(fsrep.getWidth())) {
            setWidth(fsrep.getWidth());
        }
        if (fsrep.getHeight() != null && !"".equals(fsrep.getHeight())) {
            setHeight(fsrep.getHeight());
        }
       
        populate(this.panel);
       
        if (fsrep.getItems() != null) {
            for (FormItemRepresentation item : fsrep.getItems()) {
                add(super.createItem(item));
            }
        }
       
    }
View Full Code Here


       
    }

    @Override
    public FormItemRepresentation getRepresentation() {
        FieldSetPanelRepresentation rep = super.getRepresentation(new FieldSetPanelRepresentation());
        rep.setCssClassName(this.cssClassName);
        rep.setId(this.id);
        rep.setHeight(getHeight());
        rep.setWidth(getWidth());
        rep.setLegend(this.legend);
        List<FormItemRepresentation> items = new ArrayList<FormItemRepresentation>();
        for (FBFormItem item : getItems()) {
            items.add(item.getRepresentation());
        }
        rep.setI18n(getI18nMap());
        rep.setItems(items);
        return rep;
    }
View Full Code Here

TOP

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

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.