getWidgetForPaintable().addCaption(caption, widget);
getWidgetForPaintable().captions.put(component, caption);
- MeasureManager.MeasuredSize measuredSize = component
- .getMeasuredSize();
-
- measuredSize.registerDependency(caption.getElement());
+ getMeasuredSize().registerDependency(caption.getElement());
}
caption.updateCaption(uidl);
} else {
.remove(component);
if (removedCaption != null) {
getWidgetForPaintable().remove(removedCaption);
- MeasureManager.MeasuredSize measuredSize = component
- .getMeasuredSize();
- measuredSize.deRegisterDependency(removedCaption.getElement());
+ getMeasuredSize().deRegisterDependency(
+ removedCaption.getElement());
}
}
}
if (caption == null) {
return 0;
} else {
- MeasureManager.MeasuredSize measuredSize = child.getMeasuredSize();
- return measuredSize.getDependencyWidth(caption.getElement());
+ return getMeasuredSize().getDependencyWidth(caption.getElement());
}
}
private int getCaptionHeight(VPaintableWidget child) {
-
VCaption caption = getWidgetForPaintable().captions.get(child);
if (caption != null) {
- MeasureManager.MeasuredSize measuredSize = child.getMeasuredSize();
- int captionHeight = measuredSize.getDependencyHeight(caption
- .getElement());
+ int captionHeight = getMeasuredSize().getDependencyHeight(
+ caption.getElement());
caption.getElement().getStyle()
.setMarginTop(-captionHeight, Unit.PX);