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

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


        }
    }

    @Override
    public FormItemRepresentation getRepresentation() {
        RangeFieldRepresentation rep = super.getRepresentation(new RangeFieldRepresentation());
        rep.setDefaultValue(this.defaultValue);
        rep.setName(this.name);
        rep.setId(this.id);
        rep.setMax(this.max);
        rep.setMin(this.min);
        rep.setStep(this.step);
        return rep;
    }
View Full Code Here


    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof RangeFieldRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "RangeFieldRepresentation"));
        }
        super.populate(rep);
        RangeFieldRepresentation rrep = (RangeFieldRepresentation) rep;
        this.defaultValue = rrep.getDefaultValue();
        this.name = rrep.getName();
        this.id = rrep.getId();
        this.max = rrep.getMax();
        this.min = rrep.getMin();
        this.step = rrep.getStep();
        if (rrep.getWidth() != null && !"".equals(rrep.getWidth())) {
            setWidth(rrep.getWidth());
        }
        if (rrep.getHeight() != null && !"".equals(rrep.getHeight())) {
            setHeight(rrep.getHeight());
        }
        populate(this.rangeBox);
    }
View Full Code Here

TOP

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

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.