}
.i-gridlayout-spacingexample td {
- background: white;
+ background: white;
}
/*****************************************************************************/
.i-orderedlayout-marginexample1 { background: #d0d0ff; border: 1px;}
.i-orderedlayout-marginexample2 { background: #ffd0d0; border: 1px;}
.i-orderedlayout-marginexample table { background: white; }
+
+/*****************************************************************************/
+/* For example_RichTextArea() */
+/*****************************************************************************/
+.i-richtextarea-richtextexample .gwt-ToggleButton .gwt-Image {
+ background-image: url(img/richtextarea-toolbar-fi.png) !important;
+}
} else if (example.equals("print")) {
example_Print(main, param);
} else if (example.equals("richtextfield")) {
- example_RichTextField(main, param);
+ example_RichTextArea(main, param);
} else if (example.equals("querycontainer")) {
example_QueryContainer(main, param);
} else if (example.equals("menubar")) {
//main.addComponent(new Label("<p>Print this!</p>\n<script type='text/javascript'>print();</script>", Label.CONTENT_XHTML));
}
- void example_RichTextField(final Window main, String param) {
- // Create the rich text area
+ void example_RichTextArea(final Window main, String param) {
+ main.setLayout(new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL));
+
+ // Create a rich text area
final RichTextArea rtarea = new RichTextArea();
+ rtarea.addStyleName("richtextexample");
+ //rtarea.setCaption("My Rich Text Area");
// Set initial content as HTML
- rtarea.setValue("<h1>Hello</h1>\n<p>This contains some text.</p>");
+ rtarea.setValue("<h1>Hello</h1>\n<p>This rich text area contains some text.</p>");
// Show the text edited in the rich text area as HTML.
final Button show = new Button("Show HTML");
}
});
- main.addComponent(rtarea);
- main.addComponent(show);
- main.addComponent(html);
+ Panel rtPanel = new Panel("Rich Text Area");
+ rtPanel.addComponent(rtarea);
+ rtPanel.addComponent(show);
+
+ Panel valuePanel = new Panel("Value");
+ valuePanel.addComponent(html);
+
+ main.addComponent(rtPanel);
+ main.addComponent(valuePanel);
}
void example_QueryContainer(final Window main, String param) {