Пример #1
0
 @Override
 protected Field<?> onCreateField(java.lang.Object propertyId) {
   if (propertyId.equals("status")) {
     return new I18nFormViewField(attachForm.getBean().getStatus(), WikiI18nEnum.class);
   } else if (propertyId.equals("content")) {
     return new RichTextViewField(attachForm.getBean().getContent());
   }
   return null;
 }
Пример #2
0
 @Override
 public void attachField(java.lang.Object propertyId, Field<?> field) {
   if (propertyId.equals("content")) {
     layout.addComponent(field);
   }
 }