|
|
@@ -0,0 +1,33 @@ |
|
|
|
package com.vaadin.tests.components.notification; |
|
|
|
|
|
|
|
import com.vaadin.server.VaadinRequest; |
|
|
|
import com.vaadin.shared.Position; |
|
|
|
import com.vaadin.tests.components.AbstractTestUI; |
|
|
|
import com.vaadin.ui.Button; |
|
|
|
import com.vaadin.ui.Notification; |
|
|
|
|
|
|
|
public class ChromeBottomNotification extends AbstractTestUI { |
|
|
|
@Override |
|
|
|
protected void setup(VaadinRequest request) { |
|
|
|
addButton("Show notification", new Button.ClickListener() { |
|
|
|
@Override |
|
|
|
public void buttonClick(Button.ClickEvent event) { |
|
|
|
Notification notification = new Notification( |
|
|
|
"Hello world", |
|
|
|
Notification.Type.ERROR_MESSAGE); |
|
|
|
notification.setPosition(Position.BOTTOM_CENTER); |
|
|
|
notification.show(getPage()); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
protected Integer getTicketNumber() { |
|
|
|
return 17252; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public String getDescription() { |
|
|
|
return "Bottom notification on Chrome goes up to top"; |
|
|
|
} |
|
|
|
} |