Search in sources :

Example 1 with DefaultNotification

use of com.github.appreciated.app.layout.builder.entities.DefaultNotification in project vaadin-app-layout by appreciated.

the class DemoUI method addNotification.

private void addNotification(DefaultNotification.Priority priority) {
    DemoUI.this.access(() -> {
        badge.increase();
        notifications.addNotification(new DefaultNotification("Title" + badge.getCount(), "Description" + badge.getCount(), priority));
    });
}
Also used : DefaultNotification(com.github.appreciated.app.layout.builder.entities.DefaultNotification)

Aggregations

DefaultNotification (com.github.appreciated.app.layout.builder.entities.DefaultNotification)1