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);
}