Package org.jbpm.formapi.client

Examples of org.jbpm.formapi.client.FormBuilderException


    }

    @Override
    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof NumberFieldRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "TextFieldRepresentation"));
        }
        super.populate(rep);
        NumberFieldRepresentation nrep = (NumberFieldRepresentation) rep;
        this.defaultContent = nrep.getDefaultValue();
        this.name = nrep.getName();
View Full Code Here


    }

    @Override
    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();
View Full Code Here

            Object obj = ReflectionHelper.newInstance(className);
            FBValidationItem item = (FBValidationItem) obj;
            item.populate(validationRep);
            return item;
        } catch (Exception e) {
            throw new FormBuilderException(e);
        }
    }
View Full Code Here

    }

    @Override
    public void populate(FBValidation validation) throws FormBuilderException {
        if (!(validation instanceof XORValidation)) {
            throw new FormBuilderException(i18n.RepNotOfType(validation.getClass().getName(), "XORValidation"));
        }
        subValidations.clearItems();
        XORValidation xor = (XORValidation) validation;
        List<FBValidation> subVals = xor.getValidations();
        for (FBValidation subVal : subVals) {
View Full Code Here

    }

    @Override
    public void populate(FBValidation validation) throws FormBuilderException {
        if (!(validation instanceof IsEmailValidation)) {
            throw new FormBuilderException(i18n.RepNotOfType(validation.getClass().getName(), "IsEmailValidation"));
        }
    }
View Full Code Here

    }

    @Override
    public void populate(FBValidation validation) throws FormBuilderException {
        if (!(validation instanceof IsIntegerValidation)) {
            throw new FormBuilderException(i18n.RepNotOfType(validation.getClass().getName(), "IsIntegerValidation"));
        }
    }
View Full Code Here

    }

    @Override
    public void populate(FBValidation validation) throws FormBuilderException {
        if (!(validation instanceof BiggerThanValidation)) {
            throw new FormBuilderException(i18n.RepNotOfType(validation.getClass().getName(), "BiggerThanValidation"));
        }
        TextBox valueTextBox = new TextBox();
        if (validation.getDataMap().get("value") != null) {
            valueTextBox.setValue(validation.getDataMap().get("value").toString());
        }
View Full Code Here

    }

    @Override
    public void populate(FBValidation validation) throws FormBuilderException {
        if (!(validation instanceof ORValidation)) {
            throw new FormBuilderException(i18n.RepNotOfType(validation.getClass().getName(), "ORValidation"));
        }
        subValidations.clearItems();
        ORValidation or = (ORValidation) validation;
        List<FBValidation> subVals = or.getValidations();
        for (FBValidation subVal : subVals) {
View Full Code Here

            FBFormItem item = (FBFormItem) ReflectionHelper
                    .newInstance(className);
            item.populate(rep);
            return item;
        } catch (Exception e) {
            throw new FormBuilderException("Couldn't instantiate class "
                    + className, e);
        }
    }
View Full Code Here

                try {
                    FBFormEffect effect = (FBFormEffect) ReflectionHelper
                            .newInstance(className);
                    this.effects.add(effect);
                } catch (Exception e) {
                    throw new FormBuilderException(
                            "Couldn't instantiate class " + className, e);
                }
            }
        }
        if (rep.getEventActions() != null) {
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.