]> source.dussan.org Git - vaadin-framework.git/commitdiff
RichTextExample updated
authorMarc Englund <marc.englund@itmill.com>
Thu, 29 Nov 2007 14:17:27 +0000 (14:17 +0000)
committerMarc Englund <marc.englund@itmill.com>
Thu, 29 Nov 2007 14:17:27 +0000 (14:17 +0000)
svn changeset:3042/svn branch:trunk

src/com/itmill/toolkit/demo/featurebrowser/RichTextExample.java

index 2c120da58cd4e911f6b14bb3751a25d4a028d778..d335fdb4499fcfc933433ec2a6da5bdbe5010ace 100644 (file)
@@ -17,9 +17,9 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 public class RichTextExample extends CustomComponent {\r
 \r
     public static final String txt = "<h1>RichText editor example</h1>"\r
-            + "To edit <i>this text</i>, press the <b>Edit</b> button below."\r
+            + "To edit this text, press the <b>Edit</b> button below."\r
             + "<br/>"\r
-            + "See the <A href=\"http://www.itmill.com/manual/\">maual</a> "\r
+            + "See the <A href=\"http://www.itmill.com/manual/\">manual</a> "\r
             + "for more information.";\r
 \r
     private OrderedLayout main;\r
@@ -32,7 +32,7 @@ public class RichTextExample extends CustomComponent {
         main.setMargin(true);\r
         setCompositionRoot(main);\r
 \r
-        l = new Label("asd");\r
+        l = new Label(txt);\r
         l.setContentMode(Label.CONTENT_XHTML);\r
         main.addComponent(l);\r
 \r
@@ -52,6 +52,8 @@ public class RichTextExample extends CustomComponent {
             }\r
         });\r
         main.addComponent(b);\r
+        main.setComponentAlignment(b, OrderedLayout.ALIGNMENT_RIGHT,\r
+                OrderedLayout.ALIGNMENT_VERTICAL_CENTER);\r
     }\r
 \r
 }\r