public void populate(FormItemRepresentation rep) throws FormBuilderException {
if (!(rep instanceof CSSPanelRepresentation)) {
throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "CSSPanelRepresentation"));
}
super.populate(rep);
CSSPanelRepresentation crep = (CSSPanelRepresentation) rep;
this.cssClassName = crep.getCssClassName();
this.id = crep.getId();
this.cssStylesheetUrl = crep.getCssStylesheetUrl();
super.getItems().clear();
populate(this.panel, this.link);
if (crep.getItems() != null) {
for (FormItemRepresentation item : crep.getItems()) {
add(super.createItem(item));
}
}
}