panel.setStyleName("fill-layout-width");
final Form<PropertyRecord> form = new Form<PropertyRecord>(PropertyRecord.class);
final TextBoxItem nameItem = new TextBoxItem("key", Console.CONSTANTS.common_label_name());
final TextAreaItem valueItem = new TextAreaItem("value", Console.CONSTANTS.common_label_value());
form.setFields(nameItem, valueItem);
DialogueOptions options = new DialogueOptions(
new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
// save
// Not using form.getUpdatedEntity() here as this goes through a JSON
// serialization phase which causes issues with multi-line values
PropertyRecord property = factory.property().as();
property.setKey(nameItem.getValue());
property.setValue(valueItem.getValue());
presenter.onCreateProperty(reference, property);
presenter.closePropertyDialoge();
}
},