diff options
Diffstat (limited to 'src/com/vaadin/tests/TestForRichTextEditor.java')
-rw-r--r-- | src/com/vaadin/tests/TestForRichTextEditor.java | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/src/com/vaadin/tests/TestForRichTextEditor.java b/src/com/vaadin/tests/TestForRichTextEditor.java deleted file mode 100644 index 7ac97ce882..0000000000 --- a/src/com/vaadin/tests/TestForRichTextEditor.java +++ /dev/null @@ -1,66 +0,0 @@ -/* -@ITMillApache2LicenseForJavaFiles@ - */ - -package com.vaadin.tests; - -import com.vaadin.data.Property.ValueChangeEvent; -import com.vaadin.data.Property.ValueChangeListener; -import com.vaadin.ui.Button; -import com.vaadin.ui.CustomComponent; -import com.vaadin.ui.Label; -import com.vaadin.ui.OrderedLayout; -import com.vaadin.ui.RichTextArea; -import com.vaadin.ui.Button.ClickEvent; - -/** - * - * @author IT Mill Ltd. - */ -public class TestForRichTextEditor extends CustomComponent implements - ValueChangeListener { - - private final OrderedLayout main = new OrderedLayout(); - - private Label l; - - private RichTextArea rte; - - public TestForRichTextEditor() { - - setCompositionRoot(main); - createNewView(); - } - - public void createNewView() { - main.removeAllComponents(); - main.addComponent(new Label( - "RTE uses google richtextArea and their examples toolbar.")); - - rte = new RichTextArea(); - rte.addListener(this); - - main.addComponent(rte); - - main.addComponent(new Button("commit content to label below")); - - l = new Label("", Label.CONTENT_XHTML); - main.addComponent(l); - - Button b = new Button("enabled"); - b.setSwitchMode(true); - b.setImmediate(true); - b.addListener(new Button.ClickListener() { - public void buttonClick(ClickEvent event) { - rte.setEnabled(!rte.isEnabled()); - } - }); - main.addComponent(b); - - } - - public void valueChange(ValueChangeEvent event) { - l.setValue(rte.getValue()); - } - -} |