diff options
author | Marc Englund <marc.englund@itmill.com> | 2007-11-29 14:17:27 +0000 |
---|---|---|
committer | Marc Englund <marc.englund@itmill.com> | 2007-11-29 14:17:27 +0000 |
commit | 7f79f88e252ca09c5412af5c7a8890203d9d6940 (patch) | |
tree | 0898b7151a0d27e80d6bbe76b91a1ac51c9daaa3 /src/com/itmill/toolkit/demo/featurebrowser/RichTextExample.java | |
parent | c71322d780d9e21bd1142b6d0fa309353e0ae5cc (diff) | |
download | vaadin-framework-7f79f88e252ca09c5412af5c7a8890203d9d6940.tar.gz vaadin-framework-7f79f88e252ca09c5412af5c7a8890203d9d6940.zip |
RichTextExample updated
svn changeset:3042/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/demo/featurebrowser/RichTextExample.java')
-rw-r--r-- | src/com/itmill/toolkit/demo/featurebrowser/RichTextExample.java | 8 |
1 files 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 = "<h1>RichText editor example</h1>"
- + "To edit <i>this text</i>, press the <b>Edit</b> button below."
+ + "To edit this text, press the <b>Edit</b> button below."
+ "<br/>"
- + "See the <A href=\"http://www.itmill.com/manual/\">maual</a> "
+ + "See the <A href=\"http://www.itmill.com/manual/\">manual</a> "
+ "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);
}
}
|