List of usage examples for com.vaadin.ui Notification POSITION_CENTERED
Position POSITION_CENTERED
To view the source code for com.vaadin.ui Notification POSITION_CENTERED.
Click Source Link
From source file:com.expressui.core.view.form.EntityForm.java
License:Open Source License
/** * Shows notification message that save was unsuccessful because of a conflict with another user's changes. *///w w w . ja va 2s .c o m public void showSaveConflictMessage() { Window.Notification notification = new Window.Notification( uiMessageSource.getMessage("entityForm.saveConflictError"), Window.Notification.TYPE_ERROR_MESSAGE); notification.setDelayMsec(Window.Notification.DELAY_NONE); notification.setPosition(Window.Notification.POSITION_CENTERED); getMainApplication().showNotification(notification); }
From source file:com.expressui.core.view.form.EntityForm.java
License:Open Source License
/** * Shows notification message that save was unsuccessful because of validation error. *//*from w ww. j a v a 2 s . com*/ public void showSaveValidationErrorMessage() { Window.Notification notification = new Window.Notification( uiMessageSource.getMessage("entityForm.saveValidationError", new Object[] { getEntityCaption() }), Window.Notification.TYPE_ERROR_MESSAGE); notification.setDelayMsec(Window.Notification.DELAY_NONE); notification.setPosition(Window.Notification.POSITION_CENTERED); getMainApplication().showNotification(notification); }