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 showDataNotFound() {
    Notification.show(BundleUtils.getString("notFoundData"), Notification.Type.HUMANIZED_MESSAGE);
}

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

public static void showCompareStartEndDate() {
    Notification.show(BundleUtils.getString("startEndDate"), Notification.Type.HUMANIZED_MESSAGE);
}

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

public static void showMessageOverMaxLength(String message) {
    Notification.show(BundleUtils.getString("message.error.input.over.maxlength") + " "
            + (BundleUtils.getString(message)), Notification.Type.HUMANIZED_MESSAGE);
}

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

public static void showMessageFormatNumber(String message) {
    Notification.show(
            BundleUtils.getString((BundleUtils.getString(message)) + " " + "message.error.numberformat"),
            Notification.Type.HUMANIZED_MESSAGE);
}

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

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

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

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

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

public static void showChooseFileUpload() {
    Notification.show(BundleUtils.getString("cms.common.message.notselectfileyet"),
            Notification.Type.WARNING_MESSAGE);
}

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

public static void showFomatFileUpload() {
    Notification.show(BundleUtils.getString("cms.common.message.invalidfileformat"),
            Notification.Type.WARNING_MESSAGE);
}

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

public static void showValidFileImport() {
    Notification.show(BundleUtils.getString("valid.import.file"), Notification.Type.WARNING_MESSAGE);
}

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

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