]> source.dussan.org Git - vaadin-framework.git/commitdiff
Removed deprecated ContenMode.XHTML
authorJohn Ahlroos <john@vaadin.com>
Fri, 7 Sep 2012 07:32:05 +0000 (10:32 +0300)
committerJohn Ahlroos <john@vaadin.com>
Fri, 7 Sep 2012 07:32:05 +0000 (10:32 +0300)
60 files changed:
client/src/com/vaadin/client/ui/label/LabelConnector.java
server/src/com/vaadin/server/AbstractErrorMessage.java
server/src/com/vaadin/server/UserError.java
server/src/com/vaadin/ui/Label.java
shared/src/com/vaadin/shared/ui/label/ContentMode.java
uitest/src/com/vaadin/tests/Components.java
uitest/src/com/vaadin/tests/CustomLayoutDemo.java
uitest/src/com/vaadin/tests/LayoutDemo.java
uitest/src/com/vaadin/tests/NativeWindowing.java
uitest/src/com/vaadin/tests/PerformanceTestBasicComponentRendering.java
uitest/src/com/vaadin/tests/PerformanceTestLabelsAndOrderedLayouts.java
uitest/src/com/vaadin/tests/PerformanceTestSubTreeCaching.java
uitest/src/com/vaadin/tests/TestCaptionWrapper.java
uitest/src/com/vaadin/tests/TestForNativeWindowing.java
uitest/src/com/vaadin/tests/TestForRichTextEditor.java
uitest/src/com/vaadin/tests/TestForStyledUpload.java
uitest/src/com/vaadin/tests/TestForUpload.java
uitest/src/com/vaadin/tests/TestIFrames.java
uitest/src/com/vaadin/tests/TreeFilesystem.java
uitest/src/com/vaadin/tests/UsingObjectsInSelect.java
uitest/src/com/vaadin/tests/application/ApplicationCloseTest.java
uitest/src/com/vaadin/tests/components/AbstractTestUI.java
uitest/src/com/vaadin/tests/components/TestBase.java
uitest/src/com/vaadin/tests/components/caption/IconsInCaption.java
uitest/src/com/vaadin/tests/components/combobox/ComboFocusBlurEvents.java
uitest/src/com/vaadin/tests/components/customcomponent/ClipContent.java
uitest/src/com/vaadin/tests/components/datefield/DateFieldEmptyValid.java
uitest/src/com/vaadin/tests/components/label/LabelModes.java
uitest/src/com/vaadin/tests/components/label/LabelTest.java
uitest/src/com/vaadin/tests/components/label/Labels.java
uitest/src/com/vaadin/tests/components/label/MarginsInLabels.java
uitest/src/com/vaadin/tests/components/orderedlayout/BoxLayoutTest.java
uitest/src/com/vaadin/tests/components/orderedlayout/LayoutResizeTest.java
uitest/src/com/vaadin/tests/components/panel/PanelShouldNotScroll.java
uitest/src/com/vaadin/tests/components/popupview/PopupViewOffScreen.java
uitest/src/com/vaadin/tests/components/table/EditableTableLeak.java
uitest/src/com/vaadin/tests/components/table/LabelEmbeddedClickThroughForTable.java
uitest/src/com/vaadin/tests/components/table/TableInTabsheet.java
uitest/src/com/vaadin/tests/components/table/Tables.java
uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java
uitest/src/com/vaadin/tests/components/window/LazyWindowResize.java
uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java
uitest/src/com/vaadin/tests/layouts/HiddenHorizontalLayout.java
uitest/src/com/vaadin/tests/layouts/TestLayoutPerformance.java
uitest/src/com/vaadin/tests/layouts/layouttester/HorizontalLayoutTests.java
uitest/src/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java
uitest/src/com/vaadin/tests/serialization/SerializerTest.java
uitest/src/com/vaadin/tests/tickets/Ticket1225.java
uitest/src/com/vaadin/tests/tickets/Ticket124.java
uitest/src/com/vaadin/tests/tickets/Ticket1444.java
uitest/src/com/vaadin/tests/tickets/Ticket1804.java
uitest/src/com/vaadin/tests/tickets/Ticket1811.java
uitest/src/com/vaadin/tests/tickets/Ticket1819.java
uitest/src/com/vaadin/tests/tickets/Ticket1970.java
uitest/src/com/vaadin/tests/tickets/Ticket2117.java
uitest/src/com/vaadin/tests/tickets/Ticket2240.java
uitest/src/com/vaadin/tests/tickets/Ticket2287.java
uitest/src/com/vaadin/tests/tickets/Ticket2426.java
uitest/src/com/vaadin/tests/util/Log.java
uitest/src/com/vaadin/tests/util/SampleDirectory.java

index b52809c90eb4568b212e49345323014e0fd229d4..9ec530ba2c30d224f55b73fbb0d169ac41b64cd0 100644 (file)
@@ -57,7 +57,6 @@ public class LabelConnector extends AbstractComponentConnector {
             getWidget().setText(getState().text);
             break;
 
-        case XHTML:
         case HTML:
         case RAW:
             sinkOnloads = true;
index 3ab0e73c8a18aef61118371a462af45a84fd2c90..98cdcd4f8c153b1c9a21fc8cb65cabdd130552aa 100644 (file)
@@ -49,14 +49,6 @@ public abstract class AbstractErrorMessage implements ErrorMessage {
          * 
          */
         HTML,
-
-        /**
-         * Content mode, where the error contains XHTML.
-         * 
-         * @deprecated Use {@link ContentMode.HTML}
-         */
-        @Deprecated
-        XHTML;
     }
 
     /**
@@ -125,7 +117,6 @@ public abstract class AbstractErrorMessage implements ErrorMessage {
             result = "<pre>" + VaadinServlet.safeEscapeForHtml(getMessage())
                     + "</pre>";
             break;
-        case XHTML:
         case HTML:
             result = getMessage();
             break;
index c59eb382ee895ee4c4db56fd6ed4a878609baf83..d7837fb65da59f878864c7fd6ee121c481a8ce45 100644 (file)
@@ -42,7 +42,7 @@ public class UserError extends AbstractErrorMessage {
      * @deprecated from 7.0, use {@link ContentMode#HTML} instead    
      */
     @Deprecated
-    public static final ContentMode CONTENT_XHTML = ContentMode.XHTML;
+    public static final ContentMode CONTENT_XHTML = ContentMode.HTML;
 
     /**
      * Creates a textual error message of level ERROR.
index b3a6f43e6431546dd214f47a42423f7334688e1a..b58de68af230afe2ec9b11925d9a14f8cf137a45 100644 (file)
@@ -71,7 +71,7 @@ public class Label extends AbstractComponent implements Property<String>,
      * @deprecated From 7.0, use {@link ContentMode#XHTML} instead
      */
     @Deprecated
-    public static final ContentMode CONTENT_XHTML = ContentMode.XHTML;
+    public static final ContentMode CONTENT_XHTML = ContentMode.HTML;
 
     /**
      * @deprecated From 7.0, use {@link ContentMode#XML} instead
@@ -413,9 +413,8 @@ public class Label extends AbstractComponent implements Property<String>,
             stringValue = "";
         }
 
-        if (getContentMode() == ContentMode.XHTML
-                || getContentMode() == ContentMode.XML
-                || getContentMode() == ContentMode.HTML) {
+        if (getContentMode() == ContentMode.HTML
+                || getContentMode() == ContentMode.XML) {
             return stripTags(stringValue);
         } else {
             return stringValue;
index 3e6e5b8e45cd1966404fb2ae269ae4c3a32fba1c..efdb1acde0962aa5ae04eb455ff1a5d3ee39880b 100644 (file)
@@ -38,14 +38,6 @@ public enum ContentMode {
      */
     HTML,
 
-    /**
-     * Content mode, where the label contains XHTML.
-     * 
-     * @deprecated Use {@link ContentMode.HTML}
-     */
-    @Deprecated
-    XHTML,
-
     /**
      * Content mode, where the label contains well-formed or well-balanced XML.
      * This is handled in the same way as {@link #XHTML}.
index 5d1cb6a5dc7daf2ab5990f665235c3d7d39507d3..b766ab27f391f32c74cc3157aee0985a892e114b 100644 (file)
@@ -96,7 +96,7 @@ public class Components extends Application {
         naviLayout
                 .addComponent(new Label(
                         "Click to open a test case.<br/>Right click to open test in a new window<br/><br/>",
-                        ContentMode.XHTML));
+                        ContentMode.HTML));
         naviLayout.addComponent(createMenu());
         naviLayout.addComponent(createMissingTestsList());
 
@@ -107,7 +107,7 @@ public class Components extends Application {
         embeddingLayout
                 .addComponent(new Label(
                         "<b>Do not use the embedded version for creating automated tests. Open the test in a new window before recording.</b><br/>",
-                        ContentMode.XHTML));
+                        ContentMode.HTML));
         applicationEmbedder.setSizeFull();
         embeddingLayout.addComponent(applicationEmbedder);
         embeddingLayout.setExpandRatio(applicationEmbedder, 1);
@@ -130,7 +130,7 @@ public class Components extends Application {
                     + component.getSimpleName() + "</font><br/>";
         }
         return new Label("<b>Components without a test:</B><br/>"
-                + missingTests, ContentMode.XHTML);
+                + missingTests, ContentMode.HTML);
     }
 
     private Component createMenu() {
index a0fcaf823637be7c98cf7e707be5042ec7f26904..8b4400794900a6e0f0faa0ce5e547bcf791e63b1 100644 (file)
@@ -110,7 +110,7 @@ public class CustomLayoutDemo extends com.vaadin.Application implements
 
         // Add heading label and custom layout panel to main window
         mainWindow.addComponent(new Label("<h3>Custom layout demo</h3>",
-                ContentMode.XHTML));
+                ContentMode.HTML));
         mainWindow.addComponent(customLayoutPanel);
     }
 
@@ -126,7 +126,7 @@ public class CustomLayoutDemo extends com.vaadin.Application implements
             username.setValue("Anonymous");
         }
         mainLayout.replaceComponent(loginButton, new Label("Welcome user <em>"
-                + username.getValue() + "</em>", ContentMode.XHTML));
+                + username.getValue() + "</em>", ContentMode.HTML));
     }
 
     /**
index 148e6105a65d5b3a9d13f940bc6bf1fb5dee9ad1..b20e0b9bc8d51dd66bc565ea90304d1d7ada415f 100644 (file)
@@ -98,23 +98,23 @@ public class LayoutDemo extends com.vaadin.Application {
         //
         mainWindow.addComponent(new Label(
                 "<h3>Horizontal ordered layout</h3>Added four components.",
-                ContentMode.XHTML));
+                ContentMode.HTML));
         mainWindow.addComponent(layoutA);
         mainWindow.addComponent(new Label(
                 "<br /><h3>Vertical ordered layout</h3>Added four components.",
-                ContentMode.XHTML));
+                ContentMode.HTML));
         mainWindow.addComponent(layoutB);
         mainWindow.addComponent(new Label(
                 "<br /><h3>Grid Layout (4 x 4)</h3>Added 16 components.",
-                ContentMode.XHTML));
+                ContentMode.HTML));
         mainWindow.addComponent(layoutG);
         mainWindow.addComponent(new Label("<br /><h3>Grid Layout (4 x 4)</h3>"
                 + "Added four panels and four embedded components "
-                + "diagonally with absolute coordinates.", ContentMode.XHTML));
+                + "diagonally with absolute coordinates.", ContentMode.HTML));
         mainWindow.addComponent(layoutG2);
         mainWindow.addComponent(new Label(
                 "<br /><h3>TabSheet</h3>Added above layouts as tabs.",
-                ContentMode.XHTML));
+                ContentMode.HTML));
         mainWindow.addComponent(tabsheet);
 
     }
@@ -135,7 +135,7 @@ public class LayoutDemo extends com.vaadin.Application {
                         + "extremities and may have a caption to clarify the nature of the contained components' purpose."
                         + " Panel contains an layout where the actual contained components are added, "
                         + "this layout may be switched on the fly.",
-                ContentMode.XHTML));
+                ContentMode.HTML));
         panel.setWidth("222px");
         return panel;
     }
index b364d506ce2914642b1195ec9db0c89a5035f76e..c6a68c840b6c234cbcf2ac9c1fe95d65e0a7ba3a 100644 (file)
@@ -84,7 +84,7 @@ public class NativeWindowing extends Application {
                                         + "<p>Lorem ipsum dolor sit amet.</p>"
                                         + "<p>Lorem ipsum dolor sit amet.</p>"
                                         + "<p>Lorem ipsum dolor sit amet.</p>",
-                                ContentMode.XHTML));
+                                ContentMode.HTML));
 
                     }
                 }));
index 0e76617cc5298ce6dd6db2f8ace66fb4eab33b72..1738efc215bd02aba275b3d4b677e2d76593d0f7 100644 (file)
@@ -115,7 +115,7 @@ public class PerformanceTestBasicComponentRendering extends CustomComponent {
     }
 
     private void addInfo() {
-        main.addComponent(new Label(DESCRIPTION, ContentMode.XHTML));
+        main.addComponent(new Label(DESCRIPTION, ContentMode.HTML));
     }
 
 }
index 800205922703c8bba302c962b3fbd5478ee7aa27..77181b025740483d6c88ba8dbc98a1cbda44c545 100644 (file)
@@ -88,7 +88,7 @@ public class PerformanceTestLabelsAndOrderedLayouts extends CustomComponent {
     }
 
     private void addInfo() {
-        main.addComponent(new Label(DESCRIPTION, ContentMode.XHTML));
+        main.addComponent(new Label(DESCRIPTION, ContentMode.HTML));
     }
 
 }
index 485843d104384099e30e55d7cb146b7251468c80..a325b62257fc1d602f160e23ef0f47c4a3fe5250 100644 (file)
@@ -101,7 +101,7 @@ public class PerformanceTestSubTreeCaching extends CustomComponent {
     }
 
     private void addInfo() {
-        main.addComponent(new Label(DESCRIPTION, ContentMode.XHTML));
+        main.addComponent(new Label(DESCRIPTION, ContentMode.HTML));
     }
 
 }
index b2e09a2a6fa466f120e6e7a45699b8260a23a930..bac83f9504a82126cbfce567fda2577acd1c79f6 100644 (file)
@@ -172,7 +172,7 @@ public class TestCaptionWrapper extends CustomComponent implements Listener {
 
         // Custom components
         layout.addComponent(new Label("<B>Below are few custom components</B>",
-                ContentMode.XHTML));
+                ContentMode.HTML));
         final TestForUpload tfu = new TestForUpload();
         layout.addComponent(tfu);
 
index 6f131bdb8ed76c1a2c3b809a09b3563772e4fa01..505b1801dbbb15ad1de8b2b4a60db10d8f85cfbb 100644 (file)
@@ -84,7 +84,7 @@ public class TestForNativeWindowing extends Application {
                                         + "<p>Lorem ipsum dolor sit amet.</p>"
                                         + "<p>Lorem ipsum dolor sit amet.</p>"
                                         + "<p>Lorem ipsum dolor sit amet.</p>",
-                                ContentMode.XHTML));
+                                ContentMode.HTML));
 
                     }
                 }));
index 9d4c67964855bf72db42925fe6151feb9eae1261..219bb7bf5e33da95bd827670ed299130b0018876 100644 (file)
@@ -58,7 +58,7 @@ public class TestForRichTextEditor extends CustomComponent implements
 
         main.addComponent(new Button("commit content to label below"));
 
-        l = new Label("", ContentMode.XHTML);
+        l = new Label("", ContentMode.HTML);
         main.addComponent(l);
 
         CheckBox b = new CheckBox("enabled");
index 9ead78220e9c0b111edb75ea9fbaadd7a24793df..f1ced4e1f08e652b8e59ec76e1a4f1eb95225131 100644 (file)
@@ -182,11 +182,11 @@ public class TestForStyledUpload extends Application implements
                     "Upload finished, but output buffer is null!!"));
         } else {
             status.addComponent(new Label(
-                    "<b>Name:</b> " + event.getFilename(), ContentMode.XHTML));
+                    "<b>Name:</b> " + event.getFilename(), ContentMode.HTML));
             status.addComponent(new Label("<b>Mimetype:</b> "
-                    + event.getMIMEType(), ContentMode.XHTML));
+                    + event.getMIMEType(), ContentMode.HTML));
             status.addComponent(new Label("<b>Size:</b> " + event.getLength()
-                    + " bytes.", ContentMode.XHTML));
+                    + " bytes.", ContentMode.HTML));
 
             status.addComponent(new Link("Download " + buffer.getFileName(),
                     new StreamResource(buffer, buffer.getFileName())));
index 7c2359a4049e30a0547acc23600b4747650f9c15..7146b1a4ff1a94b7008e6c5d96cddddc1d8f0670 100644 (file)
@@ -152,11 +152,11 @@ public class TestForUpload extends CustomComponent implements
                             "Upload finished, but output buffer is null"));
                 } else {
                     status.addComponent(new Label("<b>Name:</b> "
-                            + event.getFilename(), ContentMode.XHTML));
+                            + event.getFilename(), ContentMode.HTML));
                     status.addComponent(new Label("<b>Mimetype:</b> "
-                            + event.getMIMEType(), ContentMode.XHTML));
+                            + event.getMIMEType(), ContentMode.HTML));
                     status.addComponent(new Label("<b>Size:</b> "
-                            + event.getLength() + " bytes.", ContentMode.XHTML));
+                            + event.getLength() + " bytes.", ContentMode.HTML));
 
                     status.addComponent(new Link("Download "
                             + buffer.getFileName(), new StreamResource(buffer,
index e0de636f2c23cbceab64dbac5287dd3e2e54e96d..12ddb5f2a1d41ce2fa9c35c169f4c2d57eb9a913 100644 (file)
@@ -44,7 +44,7 @@ public class TestIFrames extends CustomComponent {
         final int height = 250;
         final String iFrame = "<iframe height=\"" + height + "\" width=\""
                 + width + "\" src=\"" + URL + "\" />";
-        return new Label(iFrame, ContentMode.XHTML);
+        return new Label(iFrame, ContentMode.HTML);
     }
 
 }
index db740b40752f9bf01652b25d55f2a24595174f6d..3489ee09535926135f6f265a8839f78c4ef8f1bb 100644 (file)
@@ -51,7 +51,7 @@ public class TreeFilesystem extends com.vaadin.Application implements
         setMainWindow(main);
 
         // Main window contains heading and panel
-        main.addComponent(new Label("<h2>Tree demo</h2>", ContentMode.XHTML));
+        main.addComponent(new Label("<h2>Tree demo</h2>", ContentMode.HTML));
 
         // configure file structure panel
         main.addComponent(explorerPanel);
index e1482dabd4275b99edb4f9794de6229ce639c706..54153448f1a775c387258018c07d5b6b730d21f0 100644 (file)
@@ -32,7 +32,7 @@ public class UsingObjectsInSelect extends com.vaadin.Application implements
 
     private final Select select = new Select();
     private final Label selectedTask = new Label("Selected task",
-            ContentMode.XHTML);
+            ContentMode.HTML);
 
     public LinkedList<?> exampleTasks = new LinkedList<Object>();
 
index 8cfed569dc246076e8d711b4e66df0e7ce31abc2..e4f8552af1a0e272da210400e033b4fc31b3c914 100644 (file)
@@ -13,7 +13,7 @@ public class ApplicationCloseTest extends TestBase {
     @Override
     protected void setup() {
         Label applications = new Label("Applications in session: <br/>",
-                ContentMode.XHTML);
+                ContentMode.HTML);
         if (getContext() != null) {
             applications.setValue(applications.getValue() + "App: "
                     + getContext() + "<br/>");
@@ -49,7 +49,7 @@ public class ApplicationCloseTest extends TestBase {
                         / 1000
                         / 1000
                         + "MiB memory for this application.<br/>Total memory usage reported as "
-                        + totalUsageString + "<br/>", ContentMode.XHTML);
+                        + totalUsageString + "<br/>", ContentMode.HTML);
 
         addComponent(thisApp);
         addComponent(memoryUsage);
index 210cb2535ec41a2ec7dd68be0ffacc5bdadd5678..6d84b85ff85ee8f253a122103bcb48faf991a88f 100644 (file)
@@ -14,7 +14,7 @@ public abstract class AbstractTestUI extends UI {
     public void init(WrappedRequest request) {
         getPage().setTitle(getClass().getName());
 
-        Label label = new Label(getTestDescription(), ContentMode.XHTML);
+        Label label = new Label(getTestDescription(), ContentMode.HTML);
         label.setWidth("100%");
 
         layout = new VerticalLayout();
index 19c68269774c421d987286ff8beea48ec9471a4e..3260c52003856ca661562181c1500ce558a5f0f4 100644 (file)
@@ -14,7 +14,7 @@ public abstract class TestBase extends AbstractTestCase {
         setMainWindow(window);
         window.getContent().setSizeFull();
 
-        Label label = new Label(getDescription(), ContentMode.XHTML);
+        Label label = new Label(getDescription(), ContentMode.HTML);
         label.setWidth("100%");
         window.getContent().addComponent(label);
 
index 46539b42d7aab59a81344588bff97d2c9ef0bcf5..daf472914b986cca5baaae4518f9796faeb71514 100644 (file)
@@ -106,7 +106,7 @@ public class IconsInCaption extends TestBase {
         ComponentContainer container = containerClass.newInstance();
         for (String size : sizes) {
             Label title = new Label("<h3>" + size + "x" + size + "</h3>",
-                    ContentMode.XHTML);
+                    ContentMode.HTML);
             container.addComponent(title);
             for (String icon : icons) {
                 ThemeResource res = new ThemeResource("../runo/icons/" + size
index b9c222247bcb4cf88c6ac40a704a5c72cb0986d4..6393115c47df234eacfdcd46cdc603a2c52da5d8 100644 (file)
@@ -58,7 +58,7 @@ public class ComboFocusBlurEvents extends TestBase {
         Label output = new Label(log);
         output.setCaption("Events:");
 
-        output.setContentMode(ContentMode.XHTML);
+        output.setContentMode(ContentMode.HTML);
         addComponent(output);
 
     }
index 094a63c163eebb87a6722543e173dd0ab984b610..b5c6926308a3eea0d5f19a30508f06371575e3f9 100644 (file)
@@ -15,7 +15,7 @@ public class ClipContent extends TestBase {
 
         Label text = new Label(
                 "1_long_line_that_should_be_clipped<br/>2_long_line_that_should_be_clipped<br/>3_long_line_that_should_be_clipped<br/>4_long_line_that_should_be_clipped<br/>",
-                ContentMode.XHTML);
+                ContentMode.HTML);
 
         final CustomComponent cc = new CustomComponent(text);
         cc.setWidth("20px");
index 8bc9887b821d862551db554cfc6e53fa704d867e..542a8444343265ffbb617e9c3879638adf08b91c 100644 (file)
@@ -37,7 +37,7 @@ public class DateFieldEmptyValid extends TestBase {
 
     @Override
     protected void setup() {
-        addComponent(new Label("<br/><br/>", ContentMode.XHTML));
+        addComponent(new Label("<br/><br/>", ContentMode.HTML));
         log = new Log(8);
         addComponent(log);
         df = new MyDateField();
index 207a9a8de718dc3860c5983c355a5b7f49517d27..e5bc539f36390fbb71d2b19cc82a289b5c4d3f28 100644 (file)
@@ -29,7 +29,7 @@ public class LabelModes extends ComponentTestCase<Label> {
         addTestComponent(l);
 
         l = createLabel("This label                       contains\nnewlines and spaces\nand is in\nhtml mode");
-        l.setContentMode(ContentMode.XHTML);
+        l.setContentMode(ContentMode.HTML);
         l.setWidth(null);
         addTestComponent(l);
 
index 186b3deeb39798afae4713fca9146731e6964d19..4b213b7a42744b07529b5ff3ac90c96328ea2fc3 100644 (file)
@@ -78,7 +78,7 @@ public class LabelTest extends AbstractComponentTest<Label> implements
         options.put("Raw", ContentMode.RAW);
         options.put("UIDL", ContentMode.XML); // Deprecated UIDL mode still used
                                               // to avoid breaking old tests
-        options.put("XHTML", ContentMode.XHTML);
+        options.put("XHTML", ContentMode.HTML);
         options.put("XML", ContentMode.XML);
 
         createSelectAction("Content mode", category, options, "Text",
index 1da588576b7d2a29bf7a63d625d27aff9da35ba5..cd6976543a3b713be0c74bf0720a9fe2e4f63e89 100644 (file)
@@ -38,13 +38,13 @@ public class Labels extends ComponentTestCase<Label> {
         l = createLabel(
                 "<div style='border: 1px solid red'><h1>Hello\n\n\n</h1><p/><h2>I am a rich Label</h3></div>",
                 "This is an XHTML label with rich content");
-        l.setContentMode(ContentMode.XHTML);
+        l.setContentMode(ContentMode.HTML);
         addTestComponent(l);
 
         l = createLabel(
                 "<div style='border: 1px solid blue'><h1>Hello</h1><p/><h2>I am a rich Label</h3></div>",
                 "This is an XHTML label with fixed 200px width and rich content");
-        l.setContentMode(ContentMode.XHTML);
+        l.setContentMode(ContentMode.HTML);
         l.setWidth("200px");
         addTestComponent(l);
 
index 060c937febb9b2756511e5ae81a1672774f30361..12fbc36fbb00cec411fa5c0982c7414f2d8f3039 100644 (file)
@@ -16,23 +16,23 @@ public class MarginsInLabels extends AbstractTestUI {
     protected void setup(WrappedRequest request) {
         AbstractLayout layout = new VerticalLayout();
         layout.addComponent(new Label("<h1>Vertical layout</h1>",
-                ContentMode.XHTML));
+                ContentMode.HTML));
         layout.addComponent(new Label("Next row"));
         addComponent(layout);
 
         layout = new GridLayout(1, 2);
         layout.setWidth("100%");
-        layout.addComponent(new Label("<h1>Grid layout</h1>", ContentMode.XHTML));
+        layout.addComponent(new Label("<h1>Grid layout</h1>", ContentMode.HTML));
         layout.addComponent(new Label("Next row"));
         addComponent(layout);
 
         TabSheet tabSheet = new TabSheet();
-        tabSheet.addTab(new Label("<h1>Tabsheet</h1>", ContentMode.XHTML),
+        tabSheet.addTab(new Label("<h1>Tabsheet</h1>", ContentMode.HTML),
                 "Label");
         addComponent(tabSheet);
 
         Accordion accordion = new Accordion();
-        accordion.addTab(new Label("<h1>Accordion</h1>", ContentMode.XHTML),
+        accordion.addTab(new Label("<h1>Accordion</h1>", ContentMode.HTML),
                 "Label");
         addComponent(accordion);
     }
index 01d67ae377f4316153cb2d6cfe3495135db0fd60..3227676e1146aa21152decfca762a6b2794d9966 100644 (file)
@@ -185,7 +185,7 @@ public class BoxLayoutTest extends AbstractTestUI {
             }
         });
         layout.addComponent(width);
-        layout.addComponent(new Label("&times;", ContentMode.XHTML));
+        layout.addComponent(new Label("&times;", ContentMode.HTML));
         final NativeSelect height = new NativeSelect(null, sizes);
         height.setImmediate(true);
         height.addListener(new ValueChangeListener() {
@@ -295,7 +295,7 @@ public class BoxLayoutTest extends AbstractTestUI {
             }
         });
         component.addComponent(componentWidth);
-        component.addComponent(new Label("&times;", ContentMode.XHTML));
+        component.addComponent(new Label("&times;", ContentMode.HTML));
 
         componentHeight = new NativeSelect(null, sizes);
         componentHeight.setImmediate(true);
index de65e260b6b81869056741d5b8fb802ecc367ccb..99c80fe4c144413c6dafeff507dba4009c44becd 100644 (file)
@@ -33,7 +33,7 @@ public class LayoutResizeTest extends TestBase {
         left.setMargin(true);
 
         left.addComponent(new Label("<h2>Layout resize test</h2>",
-                ContentMode.XHTML));
+                ContentMode.HTML));
 
         Button resize = new Button("Resize to 700x400",
                 new Button.ClickListener() {
index a4cba8973219914b05646a24164cb2dc1f5a101f..9b0f8beefe139f90f38d0bacb10719d452a22340 100644 (file)
@@ -40,7 +40,7 @@ public class PanelShouldNotScroll extends TestBase {
         panel.addComponent(new Label(
                 "fooooooooo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>"
                         + "foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>",
-                ContentMode.XHTML));
+                ContentMode.HTML));
         return panel;
     }
 
index 01ed34a13f3ac99443dcd6fb73393941d4585b57..03f4a072b75fbd32969fc22108a89f7d76116a18 100644 (file)
@@ -73,7 +73,7 @@ public class PopupViewOffScreen extends TestBase {
         Label l = new Label(
                 "<div style='width: 100%; height: 100%; background: " + bg
                         + "'>" + LoremIpsum.get(2000) + "</div>",
-                ContentMode.XHTML);
+                ContentMode.HTML);
         l.setSizeFull();
         p.addComponent(l);
         PopupView pv = new PopupView("Click here to popup", p);
index 26ac23d5be8de04bbd2dcae16a6c36f4aef30ecf..b80da2a78cdfcf6fe07c0cffe526c2abdaa8306e 100644 (file)
@@ -26,7 +26,7 @@ public class EditableTableLeak extends TestBase {
     private final Table table = new Table("ISO-3166 Country Codes and flags");
     private final CheckBox useFieldFactory = new CheckBox(
             "Use a caching TableFieldFactory");
-    private final Label sizeLabel = new Label("", ContentMode.XHTML);
+    private final Label sizeLabel = new Label("", ContentMode.HTML);
 
     private long size = 0;
 
index 99ad913674f13a9130293a817b9fc6ec668cd31b..a90de777cd986848253ee79b7a0a4ffd1b6e63a6 100644 (file)
@@ -37,7 +37,7 @@ public class LabelEmbeddedClickThroughForTable extends TestBase {
         item.getItemProperty("Column 1").setValue("String A");
         item.getItemProperty("Column 2").setValue(new Label("Label A"));
         item.getItemProperty("Column 3").setValue(
-                new Label("<b>Label A</b>", ContentMode.XHTML));
+                new Label("<b>Label A</b>", ContentMode.HTML));
         item.getItemProperty("Column 4").setValue(
                 new Embedded("An embedded image", new ThemeResource(
                         "../runo/icons/32/ok.png")));
@@ -49,7 +49,7 @@ public class LabelEmbeddedClickThroughForTable extends TestBase {
                 .setValue(
                         new Label(
                                 "<a style=\"color: blue\" href=\"javascript:false\">Label A</a>",
-                                ContentMode.XHTML));
+                                ContentMode.HTML));
         item.getItemProperty("Column 4").setValue(
                 new Embedded("", new ThemeResource(
                         "../runo/icons/32/cancel.png")));
index 1c6862cf07019733b988b8abdbd4e2ed3470adb9..63ff00034ffd448fd57b8160b98012c6aac9eadf 100644 (file)
@@ -32,7 +32,7 @@ public class TableInTabsheet extends AbstractTestUI {
 
         VerticalLayout vP = new VerticalLayout();
         vP.setStyleName(Reindeer.LAYOUT_BLACK);
-        Label tit = new Label("<h1> Tab/Table Test</h1>", ContentMode.XHTML);
+        Label tit = new Label("<h1> Tab/Table Test</h1>", ContentMode.HTML);
         vP.addComponent(tit);
         return vP;
 
index a08533fdbd2a90b56eb98b1162010ffbc2ee062e..2f06351a81c665bb0a1936b78d7f910648907f8c 100644 (file)
@@ -272,7 +272,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T>
                                 l.setWidth(col.width);
                                 if (col.html) {
                                     l.setValue(value);
-                                    l.setContentMode(ContentMode.XHTML);
+                                    l.setContentMode(ContentMode.HTML);
                                 } else {
                                     l.setValue(value);
                                 }
index c8c6911c1a8468ee84f708563f93f3f28ca3001b..cfcf0e19968a6ee38a1fb1ee874f2749cd391d94 100644 (file)
@@ -74,7 +74,7 @@ public class LazyInitUIs extends AbstractTestUIProvider {
         info += "<br />parameters: " + request.getParameterMap().keySet();
         info += "<br />uri fragment: "
                 + request.getBrowserDetails().getUriFragment();
-        return new Label(info, ContentMode.XHTML);
+        return new Label(info, ContentMode.HTML);
     }
 
     @Override
index bacc4c131caf35c8394cb5b7b9648ad5d1d1e20e..481862cbeaadcd154a9e33eb9b137a133b09f18d 100644 (file)
@@ -103,7 +103,7 @@ public class LazyWindowResize extends AbstractTestCase {
         mainWindow.addComponent(resizeListenerCheckBox);
         mainWindow.addComponent(immediateCheckBox);
         mainWindow.addComponent(log);
-        mainWindow.addComponent(new Label("<br/><br/>", ContentMode.XHTML));
+        mainWindow.addComponent(new Label("<br/><br/>", ContentMode.HTML));
         mainWindow.addComponent(new Label(LoremIpsum.get(10000)));
 
         setLazy(false);
index 82761afa6812c4d887bbf0a0cf9daa8a8ce088b2..a9e3b5fa443c1e88e5a8964ae37f163f2130559d 100644 (file)
@@ -136,7 +136,7 @@ public class LiferayThemeDemo extends Application {
         l.setMargin(true);
         l.setCaption("Labels");
 
-        l.addComponent(new Label("Normal Label", ContentMode.XHTML));
+        l.addComponent(new Label("Normal Label", ContentMode.HTML));
         l.addComponent(new Label(
                 "Lorem ipsum dolor sit amet, consectetur adipiscing elit."));
         return l;
@@ -217,12 +217,12 @@ public class LiferayThemeDemo extends Application {
         l.setWidth("400px");
         l.setColumnExpandRatio(0, 1);
 
-        l.addComponent(new Label("Normal TextField", ContentMode.XHTML));
+        l.addComponent(new Label("Normal TextField", ContentMode.HTML));
         TextField tf = new TextField();
         tf.setInputPrompt("Enter text");
         l.addComponent(tf);
 
-        l.addComponent(new Label("Normal TextArea", ContentMode.XHTML));
+        l.addComponent(new Label("Normal TextArea", ContentMode.HTML));
 
         TextArea ta = new TextArea();
         ta.setHeight("5em");
@@ -344,7 +344,7 @@ public class LiferayThemeDemo extends Application {
         l.setColumnExpandRatio(0, 2);
         l.setColumnExpandRatio(1, 5);
 
-        l.addComponent(new Label("Normal Panel", ContentMode.XHTML));
+        l.addComponent(new Label("Normal Panel", ContentMode.HTML));
 
         Panel p = new Panel("Normal Panel");
         p.setHeight("100px");
@@ -353,7 +353,7 @@ public class LiferayThemeDemo extends Application {
 
         l.addComponent(new Label(
                 "Light Style (<code>LiferayTheme.PANEL_LIGHT</code>)",
-                ContentMode.XHTML));
+                ContentMode.HTML));
 
         Panel p2 = new Panel("Light Style Panel");
         p2.setStyleName(LiferayTheme.PANEL_LIGHT);
@@ -416,7 +416,7 @@ public class LiferayThemeDemo extends Application {
         w2.setPositionX(350);
         w2.setPositionY(160);
         w2.addComponent(new Label("<code>Window.setResizable(false)</code>",
-                ContentMode.XHTML));
+                ContentMode.HTML));
 
         tabs.addListener(new TabSheet.SelectedTabChangeListener() {
             @Override
@@ -448,7 +448,7 @@ public class LiferayThemeDemo extends Application {
         l.addComponent(lockCheckBox, 1, 0);
         l.newLine();
 
-        Label label = new Label("Normal SplitPanel", ContentMode.XHTML);
+        Label label = new Label("Normal SplitPanel", ContentMode.HTML);
         label.setWidth(null);
         l.addComponent(label);
         final HorizontalSplitPanel sp = new HorizontalSplitPanel();
@@ -461,7 +461,7 @@ public class LiferayThemeDemo extends Application {
 
         label = new Label(
                 "Small Style<br />(<code>LiferayTheme.SPLITPANEL_SMALL</code>)",
-                ContentMode.XHTML);
+                ContentMode.HTML);
         label.setWidth(null);
         l.addComponent(label);
 
@@ -522,7 +522,7 @@ public class LiferayThemeDemo extends Application {
         l.setWidth("400px");
         l.setColumnExpandRatio(0, 1);
 
-        l.addComponent(new Label("Horizontal Slider", ContentMode.XHTML));
+        l.addComponent(new Label("Horizontal Slider", ContentMode.HTML));
         Slider s = new Slider();
         s.setWidth("200px");
         try {
@@ -533,7 +533,7 @@ public class LiferayThemeDemo extends Application {
         }
         l.addComponent(s);
 
-        l.addComponent(new Label("Vertical Slider", ContentMode.XHTML));
+        l.addComponent(new Label("Vertical Slider", ContentMode.HTML));
         s = new Slider();
         s.setOrientation(SliderOrientation.VERTICAL);
         s.setHeight("200px");
@@ -595,10 +595,10 @@ public class LiferayThemeDemo extends Application {
         message.setValue("Jumped over the lazy dog.");
         message.setWidth("15em");
 
-        l.addComponent(new Label("<h3>Type</h3>", ContentMode.XHTML));
-        l.addComponent(new Label("<h3>Preview</h3>", ContentMode.XHTML));
+        l.addComponent(new Label("<h3>Type</h3>", ContentMode.HTML));
+        l.addComponent(new Label("<h3>Preview</h3>", ContentMode.HTML));
 
-        l.addComponent(new Label("Humanized", ContentMode.XHTML));
+        l.addComponent(new Label("Humanized", ContentMode.HTML));
         Button show = new Button("Humanized Notification",
                 new Button.ClickListener() {
                     @Override
@@ -611,7 +611,7 @@ public class LiferayThemeDemo extends Application {
                 });
         l.addComponent(show);
 
-        l.addComponent(new Label("Warning", ContentMode.XHTML));
+        l.addComponent(new Label("Warning", ContentMode.HTML));
         show = new Button("Warning Notification", new Button.ClickListener() {
             @Override
             public void buttonClick(ClickEvent event) {
@@ -623,7 +623,7 @@ public class LiferayThemeDemo extends Application {
         });
         l.addComponent(show);
 
-        l.addComponent(new Label("Error", ContentMode.XHTML));
+        l.addComponent(new Label("Error", ContentMode.HTML));
         show = new Button("Error Notification", new Button.ClickListener() {
             @Override
             public void buttonClick(ClickEvent event) {
@@ -635,7 +635,7 @@ public class LiferayThemeDemo extends Application {
         });
         l.addComponent(show);
 
-        l.addComponent(new Label("Tray", ContentMode.XHTML));
+        l.addComponent(new Label("Tray", ContentMode.HTML));
         show = new Button("Tray Notification", new Button.ClickListener() {
             @Override
             public void buttonClick(ClickEvent event) {
index dc0c8958ea88b0a8433c5eb5806b8dbc1ace8501..2b7fc273ad6075dd2eb0bbca5f620235801d7645 100644 (file)
@@ -42,7 +42,7 @@ public class HiddenHorizontalLayout extends TestBase {
                 + "3. Click \"toggle layout visibility\"<br>"
                 + "4. Resize browser window to full <br/>"
                 + "5. Click \"toggle layout visibility\"<br/>",
-                ContentMode.XHTML);
+                ContentMode.HTML);
         vl.addComponent(l);
         Button b = new Button("toggle layout visibility",
                 new Button.ClickListener() {
index 85ecf2897b42d220146a3c20f218b04bf607b227..f80d91ae1b4ee7565439389759ffcb7cdc104ae0 100644 (file)
@@ -34,12 +34,12 @@ public class TestLayoutPerformance extends TestBase {
     @Override
     protected void setup() {
         Label label = new Label("<h1>CssLayout performance test.</h1>",
-                ContentMode.XHTML);
+                ContentMode.HTML);
         getLayout().addComponent(label);
 
         label = new Label(
                 "<em>Hint</em>. Use debug dialog to measure rendering times TODO: extend with size settings (to both layout and content).",
-                ContentMode.XHTML);
+                ContentMode.HTML);
         getLayout().addComponent(label);
 
         ns = new NativeSelect("Select component to test");
index 0042f0ba117981255c14cbbabf463120c259dfa6..2362653ce145da4c1bc0597928d2626f85694bac 100644 (file)
@@ -115,7 +115,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests {
 
         final AbstractComponent c1 = new Button("BUTTON");
         final AbstractComponent c2 = new Label("<b>LABEL</b>",
-                ContentMode.XHTML);
+                ContentMode.HTML);
         final AbstractComponent c3 = new Table("TABLE");
         c3.setHeight("100px");
         c3.setWidth("100%");
index 3e668289fe8ce1b06ae2dd38e57f9a17bcf28577..62dc85e8ad78dee2bd95b099ad90ec0bc0242c30 100644 (file)
@@ -47,7 +47,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests {
             ((TextField) components[i]).setValue("FIELD " + i);
             vlo.addComponent(components[i]);
             vlo.setComponentAlignment(components[i], alignments[i]);
-            vlo.addComponent(new Label("<hr />", ContentMode.XHTML));
+            vlo.addComponent(new Label("<hr />", ContentMode.HTML));
         }
         baseLayout.addComponent(vlo);
         vlo = getTestLaytout();
@@ -56,7 +56,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests {
             ((TextField) components[i]).setValue("FIELD " + i);
             vlo.addComponent(components[i]);
             vlo.setComponentAlignment(components[i], alignments[i]);
-            vlo.addComponent(new Label("<hr />", ContentMode.XHTML));
+            vlo.addComponent(new Label("<hr />", ContentMode.HTML));
         }
         baseLayout.addComponent(vlo);
         return baseLayout;
@@ -116,7 +116,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests {
 
         final AbstractComponent c1 = new Button("BUTTON");
         final AbstractComponent c2 = new Label("<b>LABEL</b>",
-                ContentMode.XHTML);
+                ContentMode.HTML);
         final AbstractComponent c3 = new Table("TABLE");
         c3.setHeight("100px");
         c3.setWidth("100%");
@@ -278,7 +278,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests {
         vlo2.addComponent(c1);
         vlo2.addComponent(new Label(
                 "<div style='height: 1px'></div><hr /><div style='height: 1px'></div>",
-                ContentMode.XHTML));
+                ContentMode.HTML));
         vlo2.addComponent(c2);
         vlo2.setExpandRatio(c1, 0.5f);
         vlo2.setExpandRatio(c2, 0.5f);
@@ -475,7 +475,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests {
         // Must add something around the hr to avoid the margins collapsing
         vlo2.addComponent(new Label(
                 "<div style='height: 1px'></div><hr /><div style='height: 1px'></div>",
-                ContentMode.XHTML));
+                ContentMode.HTML));
         vlo2.addComponent(c2);
         vlo2.setExpandRatio(c1, 0.5f);
         vlo2.setExpandRatio(c2, 0.5f);
index cb9d9e997ddd444f1fa3600f0b57af38994b19c1..a614b99b20e790b373597e19192a45ae82674346 100644 (file)
@@ -125,7 +125,7 @@ public class SerializerTest extends AbstractTestUI {
 
         rpc.sendEnum(ContentMode.TEXT, new ContentMode[] {
                 ContentMode.PREFORMATTED, ContentMode.XML },
-                Arrays.asList(ContentMode.XHTML, ContentMode.RAW));
+                Arrays.asList(ContentMode.HTML, ContentMode.RAW));
 
         testExtension.registerRpc(new SerializerTestRpc() {
             @Override
index c09fd07837eb1d6d0a9cdb331bb88fcd5671c540..28b2728021d3365a0eb5f4683adfdccc9eb48c44 100644 (file)
@@ -46,7 +46,7 @@ public class Ticket1225 extends Application {
 
         Label red = new Label(
                 "<div style='background:red;width:100%;height:100%;'>??</div>",
-                ContentMode.XHTML);
+                ContentMode.HTML);
         // red.setCaption("cap");
         // red.setSizeFull();
 
@@ -59,7 +59,7 @@ public class Ticket1225 extends Application {
         ts.getTab(red).setCaption("REd tab");
 
         Label l = new Label("<div style='background:blue;'>sdf</div>",
-                ContentMode.XHTML);
+                ContentMode.HTML);
         el.addComponent(l);
         el.setComponentAlignment(l, Alignment.MIDDLE_RIGHT);
 
index fb2903b3f7939d206d20fc218f4dbebf1b5a0eaa..659ac406906c9c8c49e657cd8d33de50719e4742 100644 (file)
@@ -49,7 +49,7 @@ public class Ticket124 extends Application {
         gl.addComponent(new Label("0,0-1,0"), 0, 0, 1, 0);
         gl.addComponent(new Label("2,0-3,0"), 2, 0, 3, 0);
         Label l = new Label("Large cell 0,1-2,2<br/>yadayada<br/>lorem ipsum");
-        l.setContentMode(ContentMode.XHTML);
+        l.setContentMode(ContentMode.HTML);
         gl.addComponent(l, 0, 1, 2, 2);
         gl.addComponent(new Label("3-1"), 3, 1);
         gl.addComponent(new Label("3,2-3,3"), 3, 2, 3, 3);
index 256b5193713583ca3aaac19e351afabc5de91d5a..4ca82deafb647322ccc2af497de5a6950b1530c1 100644 (file)
@@ -21,7 +21,7 @@ public class Ticket1444 extends Application {
 
         Label red = new Label(
                 "<div style='background:red;width:100%;height:100%;'>??</div>",
-                ContentMode.XHTML);
+                ContentMode.HTML);
         red.setSizeFull();
 
         ol.addComponent(red);
index 631e8e43095c9b63f846b9ebb2809e33765f126f..a01d0ab56d2f263ab2eca309f855a2dc1dc4b1b8 100644 (file)
@@ -109,7 +109,7 @@ public class Ticket1804 extends com.vaadin.Application {
                 Window w = new Window("Status of the fields");
                 w.setModal(true);
                 w.setHeight("80%");
-                w.addComponent(new Label(msg.toString(), ContentMode.XHTML));
+                w.addComponent(new Label(msg.toString(), ContentMode.HTML));
                 main.addWindow(w);
             }
         });
index 837f0d787b1306ce0e9e3cd5e4c2a197022e99fa..ecc711a332d85ad8d8d415e6ac9c383678751ec4 100644 (file)
@@ -72,7 +72,7 @@ public class Ticket1811 extends com.vaadin.Application {
                 }
                 Window w = new Window("Status of the fields");
                 w.setModal(true);
-                w.addComponent(new Label(msg.toString(), ContentMode.XHTML));
+                w.addComponent(new Label(msg.toString(), ContentMode.HTML));
                 main.addWindow(w);
             }
         });
index fd6e7ccd45932f3ff96bc192badf53b5a0169a31..92f19d61131084fe5d47b886e0cb4cc086f41df8 100644 (file)
@@ -58,7 +58,7 @@ public class Ticket1819 extends com.vaadin.Application {
                 }
                 Window w = new Window("Status of the fields");
                 w.setModal(true);
-                w.addComponent(new Label(msg.toString(), ContentMode.XHTML));
+                w.addComponent(new Label(msg.toString(), ContentMode.HTML));
                 main.addWindow(w);
             }
         });
index 839e9e683ca4a137ee8ff90d77c2813bcb729236..0cd91f518d94a345d95aea91640b372a5a1d4382 100644 (file)
@@ -65,11 +65,11 @@ public class Ticket1970 extends Application {
                     }
                 }));
         w.addComponent(new Label("<a href='" + getURL().toExternalForm() + "'>"
-                + getURL().toExternalForm() + "</a>", ContentMode.XHTML));
+                + getURL().toExternalForm() + "</a>", ContentMode.HTML));
         w.addComponent(new Label(
                 "<h2>How to reproduce</h2>Open the above link in another browser"
                         + " window and then press the Show-button on this window.",
-                ContentMode.XHTML));
+                ContentMode.HTML));
 
         return w;
     }
index e4365c3edb2094336d65c8c760dcd3ad3d4c4aca..c218e71a436c37334c1b7bc52e7192f68d546bb7 100644 (file)
@@ -56,7 +56,7 @@ public class Ticket2117 extends Application {
                         + "'>"
                         + getURL().toExternalForm()
                         + "</a> which opens new windows to this uri. They should end up having a separate Window and URL.",
-                ContentMode.XHTML));
+                ContentMode.HTML));
         return w;
     }
 }
index 34e734a9c30a1d2f155438d3020fa2eb2e13a176..fa7f0973fd1f1713ab81fc59162cae2bee8ce81a 100644 (file)
@@ -37,7 +37,7 @@ public class Ticket2240 extends Application {
         layout.setStyleName("borders");
         // layout.setSizeFull();
         final Label l = new Label(txt);
-        l.setContentMode(ContentMode.XHTML);
+        l.setContentMode(ContentMode.HTML);
         // l.setWidth("100%");
 
         TextField tf = new TextField("This is a textField");
index 59fc174215cbfe013d69daa6736a02b4c9a15d57..211811a460c801159d4e030fb3b615e0d9b5332b 100644 (file)
@@ -18,13 +18,13 @@ public class Ticket2287 extends Ticket2292 {
                 "Icon is built by servlet with a slow method, so it will show the bug (components not firing requestLayout)."));
 
         Label l = new Label();
-        l.setContentMode(ContentMode.XHTML);
+        l.setContentMode(ContentMode.HTML);
         l.setValue("This is a label with as slow image. <img src=\"" + url
                 + "/icon.png\" />");
         main.addComponent(l);
 
         l = new Label();
-        l.setContentMode(ContentMode.XHTML);
+        l.setContentMode(ContentMode.HTML);
         l.setValue("This is a label with as slow image. <img src=\"" + url
                 + "/icon.png\" />");
         main.addComponent(l);
index b48d8164c9edcb2156b89ecd50d2b73e91e9111a..03d5c0d0eead22b7e7f85e6cf1cedcaccab5aec5 100644 (file)
@@ -21,7 +21,7 @@ public class Ticket2426 extends Application {
         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));
+        w.addComponent(new Label("CONTENT_XHTML: " + content, ContentMode.HTML));
 
     }
 
index 7a58a4c80ca97611936829ab68734906faeffd45..54e266fa405ad314a503bab511c3591e4a28a2e8 100644 (file)
@@ -50,7 +50,7 @@ public class Log extends VerticalLayout {
     }
 
     private Label createEventLabel() {
-        Label l = new Label("&nbsp;", ContentMode.XHTML);
+        Label l = new Label("&nbsp;", ContentMode.HTML);
         l.setWidth(null);
         return l;
     }
index 609606b50194dc4efbc0e19e1518478d48120e9a..140f77855159ea258957423c9ac6a521fb8177cb 100644 (file)
@@ -82,7 +82,7 @@ public class SampleDirectory {
         errorPanel.setStyleName("strong");
         errorPanel.setComponentError(new SystemError(
                 "Cannot provide sample directory"));
-        errorPanel.addComponent(new Label(errorMessage, ContentMode.XHTML));
+        errorPanel.addComponent(new Label(errorMessage, ContentMode.HTML));
         // Remove all components from applications main window
         uI.getContent().removeAllComponents();
         // Add error panel