diff options
author | Artur Signell <artur.signell@itmill.com> | 2010-06-21 08:05:31 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2010-06-21 08:05:31 +0000 |
commit | 49c9f70e563abd002eddae21c7ad5be5d62f0b64 (patch) | |
tree | 067e7ac17263c653e7ed2610bd711392ccca56d8 /src/com/vaadin/ui/RichTextArea.java | |
parent | 02f4a09abdf940b546ba8bf22326b7b5de8243f9 (diff) | |
download | vaadin-framework-49c9f70e563abd002eddae21c7ad5be5d62f0b64.tar.gz vaadin-framework-49c9f70e563abd002eddae21c7ad5be5d62f0b64.zip |
Fix for #5063 - RichTextArea class should have constructors
* Added constructors from TextField
svn changeset:13797/svn branch:6.4
Diffstat (limited to 'src/com/vaadin/ui/RichTextArea.java')
-rw-r--r-- | src/com/vaadin/ui/RichTextArea.java | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/com/vaadin/ui/RichTextArea.java b/src/com/vaadin/ui/RichTextArea.java index 10a682b86a..f7aceb4dcc 100644 --- a/src/com/vaadin/ui/RichTextArea.java +++ b/src/com/vaadin/ui/RichTextArea.java @@ -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); |