aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2426.java
blob: b48d8164c9edcb2156b89ecd50d2b73e91e9111a (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.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;

public class Ticket2426 extends Application {

    @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.XHTML));

    }

}