Search in sources :

Example 1 with CommitException

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();
}
Also used : CommitException(com.vaadin.data.fieldgroup.FieldGroup.CommitException) Button(com.vaadin.ui.Button)

Aggregations

CommitException (com.vaadin.data.fieldgroup.FieldGroup.CommitException)1 Button (com.vaadin.ui.Button)1