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

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


    @Override
    public FormItemRepresentation getRepresentation() {
        ComboBoxRepresentation rep = super.getRepresentation(new ComboBoxRepresentation());
        List<OptionRepresentation> elements = new ArrayList<OptionRepresentation>();
        for (String label : this.items.keySet()) {
            OptionRepresentation opt = new OptionRepresentation();
            opt.setLabel(label);
            opt.setValue(this.items.get(label));
            elements.add(opt);
        }
        rep.setElements(elements);
        rep.setName(this.name);
        rep.setId(this.id);
View Full Code Here


        FormRepresentation form = new FormRepresentation();
        form.setTaskId("taskNameXXX");
        ComboBoxRepresentation combo = new ComboBoxRepresentation();
        combo.setName("comboName");
        List<OptionRepresentation> options = new ArrayList<OptionRepresentation>();
        OptionRepresentation option1 = new OptionRepresentation();
        option1.setLabel("Label 1");
        option1.setValue("l1");
        OptionRepresentation option2 = new OptionRepresentation();
        option2.setLabel("Label 2");
        option2.setValue("l2");
        options.add(option1);
        options.add(option2);
        combo.setElements(options);
        CheckBoxRepresentation checkbox = new CheckBoxRepresentation();
        checkbox.setFormValue("S");
View Full Code Here

TOP

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

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.