Package org.jbpm.formapi.client

Examples of org.jbpm.formapi.client.FormBuilderException


    }

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


    }

    @Override
    public void populate(FBValidation validation) throws FormBuilderException {
        if (!(validation instanceof EqualToValidation)) {
            throw new FormBuilderException(i18n.RepNotOfType(validation.getClass().getName(), "EqualToValidation"));
        }
        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 ANDValidation)) {
            throw new FormBuilderException(i18n.RepNotOfType(validation.getClass().getName(), "ANDValidation"));
        }
        subValidations.clearItems();
        ANDValidation and = (ANDValidation) validation;
        List<FBValidation> subVals = and.getValidations();
        for (FBValidation subVal : subVals) {
View Full Code Here

    }

    @Override
    public void populate(FBValidation validation) throws FormBuilderException {
        if (!(validation instanceof SmallerThanValidation)) {
            throw new FormBuilderException(i18n.RepNotOfType(validation.getClass().getName(), "SmallerThanValidation"));
        }
        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 NotEmptyValidation)) {
            throw new FormBuilderException(i18n.RepNotOfType(validation.getClass().getName(), "NotEmptyValidation"));
        }
    }
View Full Code Here

    }

    @Override
    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof LoopBlockRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "LoopBlockRepresentation"));
        }
        super.populate(rep);
        LoopBlockRepresentation lrep = (LoopBlockRepresentation) rep;
        this.variableName = lrep.getVariableName();
        this.loopBlock.clear();
View Full Code Here

    }
   
    @Override
    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof LabelRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "LabelRepresentation"));
        }
        super.populate(rep);
        LabelRepresentation lrep = (LabelRepresentation) rep;
        this.label.setText(lrep.getValue());
        this.cssClassName = lrep.getCssName();
View Full Code Here

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

    }

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

    }
   
    @Override
    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof AudioRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "AudioRepresentation"));
        }
        super.populate(rep);
        AudioRepresentation arep = (AudioRepresentation) rep;
        this.audioUrl = arep.getAudioUrl();
        this.cssClassName = arep.getCssClassName();
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.