public void populate(FormItemRepresentation rep) throws FormBuilderException {
if (!(rep instanceof FieldSetPanelRepresentation)) {
throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "FieldSetPanelRepresentation"));
}
super.populate(rep);
FieldSetPanelRepresentation fsrep = (FieldSetPanelRepresentation) rep;
this.cssClassName = fsrep.getCssClassName();
this.id = fsrep.getId();
this.legend = fsrep.getLegend();
if (fsrep.getWidth() != null && !"".equals(fsrep.getWidth())) {
setWidth(fsrep.getWidth());
}
if (fsrep.getHeight() != null && !"".equals(fsrep.getHeight())) {
setHeight(fsrep.getHeight());
}
populate(this.panel);
if (fsrep.getItems() != null) {
for (FormItemRepresentation item : fsrep.getItems()) {
add(super.createItem(item));
}
}
}