public void populate(FormItemRepresentation rep) throws FormBuilderException {
if (!(rep instanceof UploadWithProgressBarRepresentation)) {
throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "UploadWithProgressBarRepresentation"));
}
super.populate(rep);
UploadWithProgressBarRepresentation urep = (UploadWithProgressBarRepresentation) rep;
this.autoSubmit = urep.isAutoSubmit();
this.avoidRepeatFiles = urep.isAvoidRepeatFiles();
this.cssClassName = urep.getCssClassName();
this.enabled = urep.isEnabled();
populate(this.uploader);
}