view.awesomeBoxComponentHostView.getElement(), tooltipPositioner).setTooltipRenderer(
new Tooltip.TooltipRenderer() {
@Override
public elemental.html.Element renderDom() {
elemental.html.DivElement element = Elements.createDivElement();
AwesomeBoxComponent component =
appContext.getAwesomeBoxComponentHostModel().getActiveComponent();
if (component == null || component.getTooltipText() == null) {
element.setTextContent(defaultText);
} else {
element.setTextContent(component.getTooltipText());
}
return element;
}
}).build();