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

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


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


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

TOP

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

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.