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