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

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


            labelOutputs.setEffectClasses(labelEffects);
            labelOutputs.setValue("Outputs:");
            form.addFormItem(labelOutputs);
            form.addFormItem(tableOfOutputs);
        }
        CompleteButtonRepresentation completeButton = new CompleteButtonRepresentation();
        completeButton.setText("Complete");
        completeButton.setEffectClasses(completeButtonEffects);
        completeButton.setEventActions(asMapOfNull(completeButtonActions, FBScript.class));
        form.addFormItem(completeButton);
        form.setAction("complete");
        form.setEnctype("multipart/form-data");
        form.setMethod("POST");
        form.setName(task.getTaskId() + "AutoForm");
View Full Code Here


        return map;
    }
   
    @Override
    public FormItemRepresentation getRepresentation() {
        CompleteButtonRepresentation rep = super.getRepresentation(new CompleteButtonRepresentation());
        rep.setText(this.innerText);
        rep.setName(this.name);
        rep.setId(this.id);
        rep.setI18n(getI18nMap());
        rep.setFormat(getFormat() == null ? null : getFormat().toString());
        return rep;
    }
View Full Code Here

    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof CompleteButtonRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "CompleteButtonRepresentation"));
        }
        super.populate(rep);
        CompleteButtonRepresentation crep = (CompleteButtonRepresentation) rep;
        this.innerText = crep.getText();
        this.name = crep.getName();
        this.id = crep.getId();
        this.saveI18nMap(crep.getI18n());
        if (crep.getFormat() != null && !"".equals(crep.getFormat())) {
            this.setFormat(Format.valueOf(crep.getFormat()));
        }
        populate(this.button);
    }
View Full Code Here

        LabelRepresentation labelParams = new LabelRepresentation();
        labelParams.setValue("Parameters:");
        form.addFormItem(labelParams);
        form.addFormItem(table);
       
        CompleteButtonRepresentation completeButton = new CompleteButtonRepresentation();
        completeButton.setText("Complete");
        form.addFormItem(completeButton);
        form.setAction("complete");
        form.setEnctype("multipart/form-data");
        form.setMethod("POST");
        form.setName(title + "AutoForm");
View Full Code Here

TOP

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

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.