blob: f39209f58fe77add8e2f190f9a55364d6c062026 (
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
26
27
28
|
package com.vaadin.tests.tickets;
import com.vaadin.LegacyApplication;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
public class Ticket2426 extends LegacyApplication {
@Override
public void init() {
LegacyWindow w = new LegacyWindow();
setMainWindow(w);
final String content = "<select/>";
w.addComponent(new Label("CONTENT_DEFAULT: " + content,
ContentMode.TEXT));
w.addComponent(new Label("CONTENT_PREFORMATTED: " + content,
ContentMode.PREFORMATTED));
w.addComponent(new Label("CONTENT_RAW: " + content, ContentMode.RAW));
w.addComponent(new Label("CONTENT_TEXT: " + content, ContentMode.TEXT));
w.addComponent(new Label("CONTENT_XML: " + content, ContentMode.XML));
w.addComponent(new Label("CONTENT_XHTML: " + content, ContentMode.HTML));
}
}
|