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.CommonMessages.java

public static void showMessageUpdateSuccess(String message) {
    Notification.show(
            BundleUtils.getString("common.update.sucessfully") + " " + (BundleUtils.getString(message)),
            Notification.Type.HUMANIZED_MESSAGE);
}

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

public static void showMessageCoppySuccess(String message) {
    Notification.show(BundleUtils.getString("common.copy.sucessfully") + " " + (BundleUtils.getString(message)),
            Notification.Type.HUMANIZED_MESSAGE);
}

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

public static void showMessageDeleteSuccess(String message) {
    Notification.show(
            BundleUtils.getString("common.delete.sucessfully") + " " + (BundleUtils.getString(message)),
            Notification.Type.HUMANIZED_MESSAGE);
}

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

public static void showMessageImportSuccess(String message) {
    Notification.show(
            BundleUtils.getString("common.import.sucessfully") + " " + (BundleUtils.getString(message)),
            Notification.Type.HUMANIZED_MESSAGE);
}

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

public static void showMessageImportSuccess(String message, int quantity) {
    Notification.show(
            BundleUtils.getString("common.import.sucessfully.quantity").replace("@q", String.valueOf(quantity))
                    + " " + (BundleUtils.getString(message)),
            Notification.Type.HUMANIZED_MESSAGE);
}

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

public static void showMessageExportSuccess(String message) {
    Notification.show(
            BundleUtils.getString("common.export.sucessfully") + " " + (BundleUtils.getString(message)),
            Notification.Type.HUMANIZED_MESSAGE);
}

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

public static void showMessageRequired(String message) {
    Notification.show(BundleUtils.getString("common.input.required") + " " + (BundleUtils.getString(message)),
            Notification.Type.WARNING_MESSAGE);
}

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

public static void showOnlyNegativeNumber(String message) {
    Notification.show(BundleUtils.getString("onlyNegativeNumber") + " " + (BundleUtils.getString(message)),
            Notification.Type.WARNING_MESSAGE);
}

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

public static void showFomatSizePacking() {
    Notification.show(BundleUtils.getString("error.number.fomatpacksize"), Notification.Type.WARNING_MESSAGE);
}

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

public static void showCompareVolume() {
    Notification.show(BundleUtils.getString("compareVolume"), Notification.Type.WARNING_MESSAGE);
}