|
|
@@ -0,0 +1,34 @@ |
|
|
|
package com.vaadin.tests.components.notification; |
|
|
|
|
|
|
|
import com.vaadin.tests.components.TestBase; |
|
|
|
import com.vaadin.tests.util.LoremIpsum; |
|
|
|
import com.vaadin.ui.Label; |
|
|
|
import com.vaadin.ui.Window.Notification; |
|
|
|
|
|
|
|
public class SemiTransparentNotification extends TestBase { |
|
|
|
|
|
|
|
@Override |
|
|
|
protected void setup() { |
|
|
|
Label l = new Label(LoremIpsum.get(10000)); |
|
|
|
getLayout().setSizeFull(); |
|
|
|
addComponent(l); |
|
|
|
getMainWindow() |
|
|
|
.showNotification( |
|
|
|
new Notification( |
|
|
|
" This should be a <br/><b>SEMI-TRANSPARENT</b><br/> notification", |
|
|
|
Notification.TYPE_WARNING_MESSAGE)); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
protected String getDescription() { |
|
|
|
// TODO Auto-generated method stub |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
protected Integer getTicketNumber() { |
|
|
|
// TODO Auto-generated method stub |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
} |