Examples of TabbedPanelRepresentation


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

        }
    }

    @Override
    public FormItemRepresentation getRepresentation() {
        TabbedPanelRepresentation trep = super.getRepresentation(new TabbedPanelRepresentation());
        trep.setCssClassName(this.cssClassName);
        trep.setId(this.id);
        for (int index = 0; index < titles.size(); index++) {
            FlowLayoutFormItem tabContent = null;
            if (index < tabs.size()) {
                tabContent = tabs.get(index);
            }
            if (tabContent == null) {
                tabContent = new FlowLayoutFormItem(getFormEffects());
            }
            String tabTitle = titles.get(index).getLabel().getText();
            trep.putTab(index, tabTitle, tabContent.getRepresentation());
        }
        return trep;
    }
View Full Code Here

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

    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof TabbedPanelRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "TabbedPanelRepresentation"));
        }
        super.populate(rep);
        TabbedPanelRepresentation trep = (TabbedPanelRepresentation) rep;
        this.cssClassName = trep.getCssClassName();
        this.id = trep.getId();
        this.tabWidth = trep.getTabWidth();
        this.titles.clear();
        for (TabbedPanelRepresentation.IndexedString title : trep.getTabTitles()) {
            TabLabelFormItem label = new TabLabelFormItem(getFormEffects());
            label.getLabel().setText(title.getString());
            if (this.tabWidth != null && !"".equals(tabWidth)) {
                label.setWidth(this.tabWidth);
            }
            FormItemRepresentation subRep = trep.getTabContents().get(title);
            FlowLayoutFormItem subItem = (FlowLayoutFormItem) FBFormItem.createItem(subRep);
            if (this.cssClassName != null && !"".equals(this.cssClassName)) {
                subItem.setStyleName(this.cssClassName);
            }
            this.tabs.add(subItem);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.