blob: 2c232c9c389c487cffb2d6d23d87d33679188a27 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/*
@VaadinApache2LicenseForJavaFiles@
*/
package com.vaadin.terminal.gwt.client.ui.label;
/**
* Content modes defining how the client should interpret a Label's value.
*
* @sine 7.0
*/
public enum ContentMode {
/**
* Content mode, where the label contains only plain text. The getValue()
* result is coded to XML when painting.
*/
TEXT,
/**
* Content mode, where the label contains preformatted text.
*/
PREFORMATTED,
/**
* Content mode, where the label contains XHTML.
*/
XHTML,
/**
* Content mode, where the label contains well-formed or well-balanced XML.
* Each of the root elements must have their default namespace specified.
*
* @deprecated Use {@link #XHTML}
*/
@Deprecated
XML,
/**
* Content mode, where the label contains RAW output. Output is not required
* to comply to with XML. In Web Adapter output is inserted inside the
* resulting HTML document as-is. This is useful for some specific purposes
* where possibly broken HTML content needs to be shown, but in most cases
* XHTML mode should be preferred.
*
* @deprecated Use {@link #XHTML}, {@link #TEXT} or {@link #PREFORMATTED}.
*/
@Deprecated
RAW;
}
|