From 1f2c9803152dc26a885067165a6b99a68d85700a Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 4 Sep 2014 21:57:34 +0300 Subject: Allow captions to contain HTML (#9426) Change-Id: I4a0e580aef1a97ce69238ea0d476599883928d84 --- shared/src/com/vaadin/shared/AbstractComponentState.java | 1 + shared/src/com/vaadin/shared/ui/button/ButtonState.java | 4 ---- shared/src/com/vaadin/shared/ui/colorpicker/ColorPickerState.java | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) (limited to 'shared') diff --git a/shared/src/com/vaadin/shared/AbstractComponentState.java b/shared/src/com/vaadin/shared/AbstractComponentState.java index 816af978cf..9e21954f3e 100644 --- a/shared/src/com/vaadin/shared/AbstractComponentState.java +++ b/shared/src/com/vaadin/shared/AbstractComponentState.java @@ -44,4 +44,5 @@ public class AbstractComponentState extends SharedState { // TODO this could be an object with more information, but currently the UI // only uses the message public String errorMessage = null; + public boolean captionAsHtml = false; } diff --git a/shared/src/com/vaadin/shared/ui/button/ButtonState.java b/shared/src/com/vaadin/shared/ui/button/ButtonState.java index a12136870c..5b099572df 100644 --- a/shared/src/com/vaadin/shared/ui/button/ButtonState.java +++ b/shared/src/com/vaadin/shared/ui/button/ButtonState.java @@ -33,9 +33,5 @@ public class ButtonState extends TabIndexState { } public boolean disableOnClick = false; public int clickShortcutKeyCode = 0; - /** - * If caption should be rendered in HTML - */ - public boolean htmlContentAllowed = false; public String iconAltText = ""; } diff --git a/shared/src/com/vaadin/shared/ui/colorpicker/ColorPickerState.java b/shared/src/com/vaadin/shared/ui/colorpicker/ColorPickerState.java index 978b9a8417..3fdce20ce7 100644 --- a/shared/src/com/vaadin/shared/ui/colorpicker/ColorPickerState.java +++ b/shared/src/com/vaadin/shared/ui/colorpicker/ColorPickerState.java @@ -36,5 +36,4 @@ public class ColorPickerState extends AbstractComponentState { public boolean showDefaultCaption; - public boolean htmlContentAllowed; } -- cgit v1.2.3