use of com.vaadin.data.fieldgroup.FieldGroup.CommitException in project opennms by OpenNMS.
the class IncludeCollectionWindow method buttonClick.
/* (non-Javadoc)
* @see com.vaadin.ui.Button.ClickListener#buttonClick(com.vaadin.ui.Button.ClickEvent)
*/
@Override
public void buttonClick(Button.ClickEvent event) {
final Button btn = event.getButton();
if (btn == okButton) {
try {
formEditor.commit();
fieldChanged();
} catch (CommitException e) {
Notification.show("Can't save include collection because " + e.getMessage(), Notification.Type.ERROR_MESSAGE);
}
}
close();
}
Aggregations