public void populate(FormItemRepresentation rep) throws FormBuilderException {
if (!(rep instanceof CalendarRepresentation)) {
throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "CalendarRepresentation"));
}
super.populate(rep);
CalendarRepresentation crep = (CalendarRepresentation) rep;
this.calendarCss = crep.getCalendarCss();
this.iconUrl = crep.getIconUrl();
this.defaultValue = crep.getDefaultValue();
populate(this.calendar, this.text, this.icon);
}