Examples of NumberFieldRepresentation


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

        }
    }
   
    @Override
    public FormItemRepresentation getRepresentation() {
        NumberFieldRepresentation rep = super.getRepresentation(new NumberFieldRepresentation());
        rep.setDefaultValue(this.defaultContent);
        rep.setName(this.name);
        rep.setId(this.id);
        rep.setMaxLength(this.maxlength);
        return rep;
    }
View Full Code Here

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

    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof NumberFieldRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "TextFieldRepresentation"));
        }
        super.populate(rep);
        NumberFieldRepresentation nrep = (NumberFieldRepresentation) rep;
        this.defaultContent = nrep.getDefaultValue();
        this.name = nrep.getName();
        this.id = nrep.getId();
        this.maxlength = nrep.getMaxLength();
        if (nrep.getWidth() != null && !"".equals(nrep.getWidth())) {
            setWidth(nrep.getWidth());
        }
        if (nrep.getHeight() != null && !"".equals(nrep.getHeight())) {
            setHeight(nrep.getHeight());
        }
        populate(this.doubleBox);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.