summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2426.java
blob: fee74b73f71abccb1d7151a36a420bcdf733897a (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.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.XHTML));

    }

}