コード例 #1
0
 @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"));
 }
コード例 #2
0
 @Override
 public FormBuilderDTO getRepresentation() {
   FormBuilderDTO dto = super.getRepresentation();
   dto.setString("content", html.getHTML());
   return dto;
 }