@SuppressWarnings("deprecation") @Override public void showNotification(String caption, String description, Frame.NotificationType type) { ui.getNotifications().create() .withCaption(caption) .withDescription(description) .withContentMode(Frame.NotificationType.isHTML(type) ? ContentMode.HTML : ContentMode.TEXT) .withType(convertNotificationType(type)) .show(); }
@SuppressWarnings("deprecation") @Override public void showNotification(String caption, Frame.NotificationType type) { ui.getNotifications().create() .withCaption(caption) .withContentMode(Frame.NotificationType.isHTML(type) ? ContentMode.HTML : ContentMode.TEXT) .withType(convertNotificationType(type)) .show(); }