public void onEvent(FormSavedEvent event) {
layoutView.getFormDisplay().setSaved(true);
}
});
bus.addHandler(UpdateFormViewEvent.TYPE, new UpdateFormViewHandler() {
@Override
public void onEvent(UpdateFormViewEvent event) {
Map<String, Object> dataSnapshot = new HashMap<String, Object>();
dataSnapshot.put("newForm", event.getFormRepresentation());
dataSnapshot.put("oldForm", layoutView.getFormDisplay().createRepresentation());