@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; }
@Override public void attachField(java.lang.Object propertyId, Field<?> field) { if (propertyId.equals("content")) { layout.addComponent(field); } }