Package org.jbpm.formapi.client

Examples of org.jbpm.formapi.client.FormBuilderException


    }
   
    @Override
    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof HiddenRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "HiddenRepresentation"));
        }
        super.populate(rep);
        HiddenRepresentation hrep = (HiddenRepresentation) rep;
        this.id = hrep.getId();
        this.name = hrep.getName();
View Full Code Here


    }
   
    @Override
    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof ComboBoxRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "TextFieldRepresentation"));
        }
        super.populate(rep);
        ComboBoxRepresentation crep = (ComboBoxRepresentation) rep;
        List<OptionRepresentation> options = crep.getElements();
        this.items.clear();
View Full Code Here

    }
   
    @Override
    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof ServerTransformationRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "ServerTransformationRepresentation"));
        }
        super.populate(rep);
        ServerTransformationRepresentation srep = (ServerTransformationRepresentation) rep;
        this.setScriptContent(srep.getScript());
        srep.setLanguage(this.language);
View Full Code Here

    }

    @Override
    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof HorizontalPanelRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "HorizontalPanelRepresentation"));
        }
        super.populate(rep);
        HorizontalPanelRepresentation hrep = (HorizontalPanelRepresentation) rep;
        this.borderWidth = hrep.getBorderWidth();
        this.cssClassName = hrep.getCssClassName();
View Full Code Here

    }
   
    @Override
    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof HTMLRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "HTMLRepresentation"));
        }
        super.populate(rep);
        HTMLRepresentation hrep = (HTMLRepresentation) rep;
        this.setContent(hrep.getContent());
    }
View Full Code Here

    }

    @Override
    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof CSSPanelRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "CSSPanelRepresentation"));
        }
        super.populate(rep);
        CSSPanelRepresentation crep = (CSSPanelRepresentation) rep;
        this.cssClassName = crep.getCssClassName();
        this.id = crep.getId();
View Full Code Here

    }
   
    @Override
    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof HeaderRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "HeaderRepresentation"));
        }
        super.populate(rep);
        HeaderRepresentation hrep = (HeaderRepresentation) rep;
        this.cssClassName = hrep.getCssName();
        this.id = hrep.getCssId();
View Full Code Here

    }

    @Override
    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof MIGPanelRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "MIGPanelRepresentation"));
        }
        super.populate(rep);
        MIGPanelRepresentation mprep = (MIGPanelRepresentation) rep;
        this.rows = mprep.getRows();
        this.borderWidth = mprep.getBorderWidth();
View Full Code Here

    }

    @Override
    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof RichTextEditorRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "RichTextEditorRepresentation"));
        }
        super.populate(rep);
        RichTextEditorRepresentation rrep = (RichTextEditorRepresentation) rep;
        this.html = rrep.getHtml();
        if (rrep.getWidth() != null && !"".equals(rrep.getWidth())) {
View Full Code Here

    }

    @Override
    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof ConditionalBlockRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "ConditionalBlockRepresentation"));
        }
        super.populate(rep);
        ConditionalBlockRepresentation srep = (ConditionalBlockRepresentation) rep;
        this.conditionScript = srep.getCondition();
        FormItemRepresentation ifRep = srep.getIfBlock();
View Full Code Here

TOP

Related Classes of org.jbpm.formapi.client.FormBuilderException

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.