animation.hide();
}
public void onMouseDown(MouseDownEvent event) {
Element elem = getElement();
final Event e = event.getNativeEvent();
offsetX = e.getClientX() - elem.getAbsoluteLeft();
offsetY = e.getClientY() - elem.getAbsoluteTop();
isDragging = true;
// sink capture events
MouseEventCapture.capture(new CaptureMouseListener());
e.preventDefault();
}