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