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 showDeleteSuccess() {
    Notification.show(BundleUtils.getString("common.notitfication.delete.success"),
            Notification.Type.TRAY_NOTIFICATION);
}

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

public static void showInsertSuccess() {
    Notification.show(BundleUtils.getString("common.notitfication.insert.success"),
            Notification.Type.TRAY_NOTIFICATION);
}

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

public static void showUpdateFail() {
    Notification.show(BundleUtils.getString("common.notitfication.update.fail"),
            Notification.Type.TRAY_NOTIFICATION);
}

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

public static void showGreaterError() {
    Notification.show(BundleUtils.getString("common.error.pricemin.greater.price"),
            Notification.Type.TRAY_NOTIFICATION);
}

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

public static void showFromValue2ToValueError() {
    Notification.show(BundleUtils.getString("common.error.fromValue2ToValue"),
            Notification.Type.TRAY_NOTIFICATION);
}

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

public static void showServicePriceCantAdd() {
    Notification.show(BundleUtils.getString("service.error.cant.add"), Notification.Type.TRAY_NOTIFICATION);
}

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

public static void showFromValueAndToValuePreviousError() {
    Notification.show(BundleUtils.getString("common.error.fromValueAndToValuePrevious"),
            Notification.Type.TRAY_NOTIFICATION);
}

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

public static void showToValueAndFromValueNextError() {
    Notification.show(BundleUtils.getString("common.error.toValueNotGreaterThanFromValueNext"),
            Notification.Type.TRAY_NOTIFICATION);
}

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

public static void showExpiryDateBeforeIssueDateError() {
    Notification.show(BundleUtils.getString("common.error.expiryDateBeforeIssueDate"),
            Notification.Type.TRAY_NOTIFICATION);
}

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

public static void showMessageFormatDate(String message) {
    Notification.show(BundleUtils.getString("common.input.formatdate") + " " + BundleUtils.getString(message),
            Notification.Type.TRAY_NOTIFICATION);
}