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
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
}\r
});\r
main.addComponent(b);\r
+ main.setComponentAlignment(b, OrderedLayout.ALIGNMENT_RIGHT,\r
+ OrderedLayout.ALIGNMENT_VERTICAL_CENTER);\r
}\r
\r
}\r