* Shows this error message next to given element.
*
* @param indicatorElement
*/
public void showAt(Element indicatorElement) {
VOverlay errorContainer = (VOverlay) getParent();
if (errorContainer == null) {
errorContainer = new VOverlay();
errorContainer.setWidget(this);
}
errorContainer.setPopupPosition(
DOM.getAbsoluteLeft(indicatorElement)
+ 2
* DOM.getElementPropertyInt(indicatorElement,
"offsetHeight"),
DOM.getAbsoluteTop(indicatorElement)
+ 2
* DOM.getElementPropertyInt(indicatorElement,
"offsetHeight"));
errorContainer.show();
}