List of usage examples for com.vaadin.ui Notification show
public static Notification show(String caption, String description, Type type)
From source file:com.cms.utils.CommonMessages.java
public static void showInsertFail(String message) { Notification.show( BundleUtils.getString("common.noti.insert.fail").replace("@s", BundleUtils.getString(message)), BundleUtils.getString("clickToClose"), Notification.Type.ERROR_MESSAGE); }
From source file:com.cms.utils.CommonMessages.java
public static void showDeleteFail(String message) { Notification.show( BundleUtils.getString("common.noti.delete.fail").replace("@s", BundleUtils.getString(message)), BundleUtils.getString("clickToClose"), Notification.Type.ERROR_MESSAGE); }
From source file:com.cms.utils.CommonMessages.java
public static void showCopyFail(String message) { Notification.show( BundleUtils.getString("common.noti.copy.fail").replace("@s", BundleUtils.getString(message)), BundleUtils.getString("clickToClose"), Notification.Type.ERROR_MESSAGE); }
From source file:com.cms.utils.CommonMessages.java
public static void showCancelFail(String message) { Notification.show( BundleUtils.getString("common.noti.cancel.fail").replace("@s", BundleUtils.getString(message)), BundleUtils.getString("clickToClose"), Notification.Type.ERROR_MESSAGE); }
From source file:com.cms.utils.CommonMessages.java
public static void showExportSuccess(String message) { Notification.show( BundleUtils.getString("common.noti.export.success").replace("@s", BundleUtils.getString(message)), BundleUtils.getString("clickToClose"), Notification.Type.ERROR_MESSAGE); }
From source file:com.cms.utils.CommonMessages.java
public static void showExportFail(String message) { Notification.show( BundleUtils.getString("common.noti.export.fail").replace("@s", BundleUtils.getString(message)), BundleUtils.getString("clickToClose"), Notification.Type.ERROR_MESSAGE); }
From source file:com.cms.utils.CommonMessages.java
public static void showErrorMessage(String message) { Notification.show(message, BundleUtils.getString("clickToClose"), Notification.Type.ERROR_MESSAGE); }
From source file:com.cms.utils.CommonUtils.java
public static void showCodeImportExist(String existcode) { Notification.show( BundleUtils.getString("detail.serial.goodsCode") + " ( " + existcode + " ) " + BundleUtils.getString("goods.error.code.existed"), BundleUtils.getString("clickToClose"), Notification.Type.ERROR_MESSAGE); }
From source file:com.cms.utils.CommonUtils.java
public static void showErrorMessage(String message) { Notification.show(BundleUtils.getString(message), BundleUtils.getString("clickToClose"), Notification.Type.ERROR_MESSAGE); }
From source file:com.gmail.volodymyrdotsenko.cms.fe.vaadin.LoginUI.java
License:Apache License
private void login() { try {//from ww w. j av a 2 s . c o m vaadinSecurity.login(userName.getValue(), passwordField.getValue(), rememberMe.getValue()); VaadinSession.getCurrent().setLocale(new Locale((String) lang.getValue())); } catch (AuthenticationException ex) { userName.focus(); userName.selectAll(); passwordField.setValue(""); loginFailedLabel.setValue(String.format("Login failed: %s", ex.getMessage())); loginFailedLabel.setVisible(true); if (loggedOutLabel != null) { loggedOutLabel.setVisible(false); } } catch (Exception ex) { Notification.show("An unexpected error occurred", ex.getMessage(), Notification.Type.ERROR_MESSAGE); LoggerFactory.getLogger(getClass()).error("Unexpected error while logging in", ex); } finally { login.setEnabled(true); } }