From 7f79f88e252ca09c5412af5c7a8890203d9d6940 Mon Sep 17 00:00:00 2001 From: Marc Englund Date: Thu, 29 Nov 2007 14:17:27 +0000 Subject: [PATCH] RichTextExample updated svn changeset:3042/svn branch:trunk --- .../toolkit/demo/featurebrowser/RichTextExample.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com/itmill/toolkit/demo/featurebrowser/RichTextExample.java b/src/com/itmill/toolkit/demo/featurebrowser/RichTextExample.java index 2c120da58c..d335fdb449 100644 --- a/src/com/itmill/toolkit/demo/featurebrowser/RichTextExample.java +++ b/src/com/itmill/toolkit/demo/featurebrowser/RichTextExample.java @@ -17,9 +17,9 @@ import com.itmill.toolkit.ui.Button.ClickEvent; public class RichTextExample extends CustomComponent { public static final String txt = "

RichText editor example

" - + "To edit this text, press the Edit button below." + + "To edit this text, press the Edit button below." + "
" - + "See the maual " + + "See the manual " + "for more information."; private OrderedLayout main; @@ -32,7 +32,7 @@ public class RichTextExample extends CustomComponent { main.setMargin(true); setCompositionRoot(main); - l = new Label("asd"); + l = new Label(txt); l.setContentMode(Label.CONTENT_XHTML); main.addComponent(l); @@ -52,6 +52,8 @@ public class RichTextExample extends CustomComponent { } }); main.addComponent(b); + main.setComponentAlignment(b, OrderedLayout.ALIGNMENT_RIGHT, + OrderedLayout.ALIGNMENT_VERTICAL_CENTER); } } -- 2.39.5