@Override public void populate(FormBuilderDTO dto) throws FormBuilderException { if (!dto.getClassName().endsWith("HTMLRepresentation")) { throw new FormBuilderException(i18n.RepNotOfType(dto.getClassName(), "HTMLRepresentation")); } super.populate(dto); this.setContent(dto.getString("content")); }
@Override public FormBuilderDTO getRepresentation() { FormBuilderDTO dto = super.getRepresentation(); dto.setString("content", html.getHTML()); return dto; }