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

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


        option2.setLabel("Label 2");
        option2.setValue("l2");
        options.add(option1);
        options.add(option2);
        combo.setElements(options);
        CheckBoxRepresentation checkbox = new CheckBoxRepresentation();
        checkbox.setFormValue("S");
        checkbox.setName("checkboxName");
        form.addFormItem(combo);
        form.addFormItem(checkbox);
        return form;
    }
View Full Code Here


        }
    }

    @Override
    public FormItemRepresentation getRepresentation() {
        CheckBoxRepresentation rep = super.getRepresentation(new CheckBoxRepresentation());
        rep.setFormValue(formValue);
        rep.setName(name);
        rep.setId(id);
        rep.setChecked(checked);
        return rep;
    }
View Full Code Here

    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof CheckBoxRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "CheckBoxRepresentation"));
        }
        super.populate(rep);
        CheckBoxRepresentation crep = (CheckBoxRepresentation) rep;
        this.formValue = crep.getFormValue();
        this.name = crep.getName();
        this.id = crep.getId();
        this.checked = crep.getChecked();
        populate(this.checkBox);
    }
View Full Code Here

TOP

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

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.