]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #5063 - RichTextArea class should have constructors
authorArtur Signell <artur.signell@itmill.com>
Mon, 21 Jun 2010 08:05:31 +0000 (08:05 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 21 Jun 2010 08:05:31 +0000 (08:05 +0000)
 * Added constructors from TextField

svn changeset:13797/svn branch:6.4

src/com/vaadin/ui/RichTextArea.java

index 10a682b86ad4852997ab9147dfdbbbbbc765a64c..f7aceb4dcc165a77ba072b9d639ab594098523ae 100644 (file)
@@ -4,6 +4,7 @@
 
 package com.vaadin.ui;
 
+import com.vaadin.data.Property;
 import com.vaadin.terminal.PaintException;
 import com.vaadin.terminal.PaintTarget;
 import com.vaadin.terminal.gwt.client.ui.richtextarea.VRichTextArea;
@@ -20,6 +21,61 @@ import com.vaadin.ui.ClientWidget.LoadStyle;
 @ClientWidget(value = VRichTextArea.class, loadStyle = LoadStyle.LAZY)
 public class RichTextArea extends TextField {
 
+    /**
+     * Constructs an empty <code>RichTextArea</code> with no caption.
+     */
+    public RichTextArea() {
+        super();
+    }
+
+    /**
+     * 
+     * Constructs an empty <code>RichTextArea</code> with the given caption.
+     * 
+     * @param caption
+     *            the caption for the editor.
+     */
+    public RichTextArea(String caption) {
+        super(caption);
+    }
+
+    /**
+     * Constructs a new <code>RichTextArea</code> that's bound to the specified
+     * <code>Property</code> and has no caption.
+     * 
+     * @param dataSource
+     *            the data source for the editor value
+     */
+    public RichTextArea(Property dataSource) {
+        super(dataSource);
+    }
+
+    /**
+     * Constructs a new <code>RichTextArea</code> that's bound to the specified
+     * <code>Property</code> and has the given caption.
+     * 
+     * @param caption
+     *            the caption for the editor.
+     * @param dataSource
+     *            the data source for the editor value
+     */
+    public RichTextArea(String caption, Property dataSource) {
+        super(caption, dataSource);
+    }
+
+    /**
+     * Constructs a new <code>RichTextArea</code> with the given caption and
+     * initial text contents.
+     * 
+     * @param caption
+     *            the caption for the editor.
+     * @param value
+     *            the initial text content of the editor.
+     */
+    public RichTextArea(String caption, String value) {
+        super(caption, value);
+    }
+
     @Override
     public void paintContent(PaintTarget target) throws PaintException {
         target.addAttribute("richtext", true);