Example usage for com.vaadin.ui Notification show

List of usage examples for com.vaadin.ui Notification show

Introduction

In this page you can find the example usage for com.vaadin.ui Notification show.

Prototype

public static Notification show(String caption, Type type) 

Source Link

Document

Shows a notification message the current page.

Usage

From source file:com.cms.utils.CommonUtils.java

public static void showMessage(String message) {
    Notification.show(BundleUtils.getString(message), Notification.Type.TRAY_NOTIFICATION);
}

From source file:com.cms.utils.CommonUtils.java

public static void showMessageCellNull(String headerExcel, int cellNull, int record) {
    String header = BundleUtils.getString(headerExcel);
    String[] headerEx = header.split(Constants.COMMA);
    String column = headerEx[cellNull];
    record += 1;//w  w  w .ja  va2s  .  c  o m
    Notification.show(BundleUtils.getString("common.input.required") + column + "  :  "
            + BundleUtils.getString("in.record") + record, Notification.Type.TRAY_NOTIFICATION);
}

From source file:com.cms.utils.CommonUtils.java

public static void showWrongTemplateFile() {
    Notification.show(BundleUtils.getString("error.excel.template.wrong"), Notification.Type.TRAY_NOTIFICATION);
}

From source file:com.cms.utils.CommonUtils.java

public static void showUpdateSuccess(String message) {
    Notification.show(BundleUtils.getString("common.noti.update.success").replace("@s", message),
            Notification.Type.HUMANIZED_MESSAGE);
}

From source file:com.cms.utils.CommonUtils.java

public static void showDeleteSuccess(String message) {
    Notification.show(BundleUtils.getString("common.noti.delete.success").replace("@s", message),
            Notification.Type.HUMANIZED_MESSAGE);
}

From source file:com.cms.utils.CommonUtils.java

public static void showInsertFail() {
    Notification.show(BundleUtils.getString("common.notitfication.import.fail"),
            Notification.Type.ERROR_MESSAGE);
}

From source file:com.cms.utils.CommonUtils.java

public static void showInsertSuccess(String message) {
    Notification.show(BundleUtils.getString("common.noti.insert.success").replace("@s", message),
            Notification.Type.HUMANIZED_MESSAGE);
}

From source file:com.cms.utils.CommonUtils.java

public static void showCopySuccess(String message) {
    Notification.show(BundleUtils.getString("common.noti.copy.success").replace("@s", message),
            Notification.Type.HUMANIZED_MESSAGE);
}

From source file:com.cms.utils.CommonUtils.java

public static void showUpdateFail(String message) {
    Notification.show(BundleUtils.getString("common.noti.update.fail").replace("@s", message),
            Notification.Type.ERROR_MESSAGE);
}

From source file:com.cms.utils.CommonUtils.java

public static void showInsertFail(String message) {
    Notification.show(BundleUtils.getString("common.noti.insert.fail").replace("@s", message),
            Notification.Type.ERROR_MESSAGE);
}