blob: 3ad348962f429ffa69bff5831f25624527f3c812 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package com.vaadin.tests.themes.chameleon;
import com.vaadin.annotations.Theme;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.ui.Notification;
import com.vaadin.v7.ui.themes.ChameleonTheme;
@Theme(ChameleonTheme.THEME_NAME)
public class ChameleonNotification extends AbstractReindeerTestUI {
@Override
protected void setup(VaadinRequest request) {
addButton("Notification", event -> {
Notification notification = new Notification("Notification");
notification.setDelayMsec(30000);
notification.show(getUI().getPage());
});
}
@Override
protected Integer getTicketNumber() {
return 15351;
}
}
|