diff options
author | Artur Signell <artur@vaadin.com> | 2014-09-04 21:57:34 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2014-12-18 14:31:49 +0000 |
commit | 1f2c9803152dc26a885067165a6b99a68d85700a (patch) | |
tree | df827f64118d5cb38b81ff49c2c80cff61625998 /server/src/com/vaadin/ui/Button.java | |
parent | 95333e50c65521476d3d166c8f255ccda14221e0 (diff) | |
download | vaadin-framework-1f2c9803152dc26a885067165a6b99a68d85700a.tar.gz vaadin-framework-1f2c9803152dc26a885067165a6b99a68d85700a.zip |
Allow captions to contain HTML (#9426)
Change-Id: I4a0e580aef1a97ce69238ea0d476599883928d84
Diffstat (limited to 'server/src/com/vaadin/ui/Button.java')
-rw-r--r-- | server/src/com/vaadin/ui/Button.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/Button.java b/server/src/com/vaadin/ui/Button.java index c102157bf1..677f29ba13 100644 --- a/server/src/com/vaadin/ui/Button.java +++ b/server/src/com/vaadin/ui/Button.java @@ -642,7 +642,7 @@ public class Button extends AbstractComponent implements /** * Set whether the caption text is rendered as HTML or not. You might need - * to retheme button to allow higher content than the original text style. + * to re-theme button to allow higher content than the original text style. * * 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 @@ -653,7 +653,7 @@ public class Button extends AbstractComponent implements * <code>false</code> otherwise */ public void setHtmlContentAllowed(boolean htmlContentAllowed) { - getState().htmlContentAllowed = htmlContentAllowed; + getState().captionAsHtml = htmlContentAllowed; } /** @@ -663,7 +663,7 @@ public class Button extends AbstractComponent implements * <code>false</code> otherwise */ public boolean isHtmlContentAllowed() { - return getState(false).htmlContentAllowed; + return getState(false).captionAsHtml; } /* @@ -711,6 +711,7 @@ public class Button extends AbstractComponent implements result.add("icon-alternate-text"); result.add("click-shortcut"); result.add("html-content-allowed"); + result.add("caption-as-html"); return result; } |