From: Matti Tahvonen Date: Mon, 5 May 2008 08:16:30 +0000 (+0000) Subject: Test update: added toggle to edit enabled field X-Git-Tag: 6.7.0.beta1~4830 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8027a289674a4d2b1b25bd85a189e4886027a12d;p=vaadin-framework.git Test update: added toggle to edit enabled field svn changeset:4325/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/tests/TestForRichTextEditor.java b/src/com/itmill/toolkit/tests/TestForRichTextEditor.java index 9adc4b4838..cc0a5878fd 100644 --- a/src/com/itmill/toolkit/tests/TestForRichTextEditor.java +++ b/src/com/itmill/toolkit/tests/TestForRichTextEditor.java @@ -11,6 +11,7 @@ import com.itmill.toolkit.ui.CustomComponent; import com.itmill.toolkit.ui.Label; import com.itmill.toolkit.ui.OrderedLayout; import com.itmill.toolkit.ui.RichTextArea; +import com.itmill.toolkit.ui.Button.ClickEvent; /** * @@ -46,6 +47,16 @@ public class TestForRichTextEditor extends CustomComponent implements 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) {