public void populate(FormItemRepresentation rep) throws FormBuilderException {
if (!(rep instanceof PasswordFieldRepresentation)) {
throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "PasswordFieldRepresentation"));
}
super.populate(rep);
PasswordFieldRepresentation prep = (PasswordFieldRepresentation) rep;
this.defaultContent = prep.getDefaultValue();
this.name = prep.getName();
this.id = prep.getId();
this.maxlength = prep.getMaxLength();
if (prep.getWidth() != null && !"".equals(prep.getWidth())) {
setWidth(prep.getWidth());
}
if (prep.getHeight() != null && !"".equals(prep.getHeight())) {
setHeight(prep.getHeight());
}
populate(this.textBox);
}