aboutsummaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2011-08-09 11:40:51 +0000
committerLeif Åstrand <leif@vaadin.com>2011-08-09 11:40:51 +0000
commit32f1da4ee0bb6627e1fa1318185121873cca8443 (patch)
treeac6121599e211632c8d6ff191715d5a68a8ca369 /src/com
parent78309b20a26209dab24001261c4d84347894e2e8 (diff)
downloadvaadin-framework-32f1da4ee0bb6627e1fa1318185121873cca8443.tar.gz
vaadin-framework-32f1da4ee0bb6627e1fa1318185121873cca8443.zip
#5402 Removed java 1.6 annotations and added javadocs for html support in OptionGroup items
svn changeset:20224/svn branch:6.7
Diffstat (limited to 'src/com')
-rw-r--r--src/com/vaadin/ui/OptionGroup.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/com/vaadin/ui/OptionGroup.java b/src/com/vaadin/ui/OptionGroup.java
index a8cebc1c5d..8daf6b6f99 100644
--- a/src/com/vaadin/ui/OptionGroup.java
+++ b/src/com/vaadin/ui/OptionGroup.java
@@ -172,11 +172,28 @@ public class OptionGroup extends AbstractSelect implements
return true;
}
+ /**
+ * Sets whether html is allowed in the item captions. If set to true, the
+ * captions are passed to the browser as html and the developer is
+ * responsible for ensuring no harmful html is used. If set to false, the
+ * content is passed to the browser as plain text.
+ *
+ * @param htmlContentAllowed
+ * true if the captions are used as html, false if used as plain
+ * text
+ */
public void setHtmlContentAllowed(boolean htmlContentAllowed) {
this.htmlContentAllowed = htmlContentAllowed;
requestRepaint();
}
+ /**
+ * Checks whether captions are interpreted as html or plain text.
+ *
+ * @return true if the captions are used as html, false if used as plain
+ * text
+ * @see #setHtmlContentAllowed(boolean)
+ */
public boolean isHtmlContentAllowed() {
return htmlContentAllowed;
}