private final ContentPanel createPropertiesContent() { FormPanel panel = new FormPanel(); panel.setHeaderVisible(false); panel.setButtonAlign(HorizontalAlignment.RIGHT); panel.setStyleAttribute("padding", "20"); KeyListener keyListener = new KeyListener() { public void componentKeyUp(ComponentEvent event) { editor.markDirty(); } }; name = new TextField<String>(); name.setFieldLabel(constants.name()); name.setEmptyText(constants.groupName()); name.setAllowBlank(false); name.setMinLength(2); name.addKeyListener(keyListener); name.setStyleAttribute("marginTop", "5"); name.setStyleAttribute("marginBottom", "5"); panel.add(name); description = new TextArea(); description.setPreventScrollbars(true); description.setFieldLabel(constants.description()); description.addKeyListener(keyListener); description.setStyleAttribute("marginTop", "5"); description.setStyleAttribute("marginBottom", "5"); panel.add(description); return panel; }