aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/AbstractComponent.java
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2012-02-23 13:03:59 +0200
committerHenri Sara <hesara@vaadin.com>2012-02-23 13:03:59 +0200
commitb93f3668c36d4fe4af6e02da8b0ed70448bbb322 (patch)
treec5487fc21cf8494841e5327e5c91712792c458ce /src/com/vaadin/ui/AbstractComponent.java
parent23ff3340cd8e5d3ce7cc5772b7b4d4e2ba05ec6a (diff)
downloadvaadin-framework-b93f3668c36d4fe4af6e02da8b0ed70448bbb322.tar.gz
vaadin-framework-b93f3668c36d4fe4af6e02da8b0ed70448bbb322.zip
Communicate component description (tooltip) in shared state (#8304).
Diffstat (limited to 'src/com/vaadin/ui/AbstractComponent.java')
-rw-r--r--src/com/vaadin/ui/AbstractComponent.java15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/com/vaadin/ui/AbstractComponent.java b/src/com/vaadin/ui/AbstractComponent.java
index 69eaa8e449..f68c928f8b 100644
--- a/src/com/vaadin/ui/AbstractComponent.java
+++ b/src/com/vaadin/ui/AbstractComponent.java
@@ -783,12 +783,6 @@ public abstract class AbstractComponent implements Component, MethodEventSource
VAbstractPaintableWidget.ATTRIBUTE_ICON, getIcon());
}
- if (getDescription() != null && getDescription().length() > 0) {
- target.addAttribute(
- VAbstractPaintableWidget.ATTRIBUTE_DESCRIPTION,
- getDescription());
- }
-
if (eventIdentifiers != null) {
target.addAttribute("eventListeners",
eventIdentifiers.toArray());
@@ -893,13 +887,10 @@ public abstract class AbstractComponent implements Component, MethodEventSource
sharedState.setStyle(getStyleName());
- // TODO use the rest on the client side
+ sharedState.setDescription(getDescription());
- // sharedState.setCaption(getCaption());
- // // TODO icon also in shared state - how to convert Resource?
- // if (getDescription() != null && getDescription().length() > 0) {
- // state.put(ComponentState.STATE_DESCRIPTION, getDescription());
- // }
+ // TODO sharedState.setCaption(getCaption());
+ // TODO icon also in shared state - how to convert Resource?
return sharedState;
}