offsetY = e.getClientY() - elem.getAbsoluteTop();
isDragging = true;
// sink capture events
MouseEventCapture.capture(new CaptureMouseListener());
e.preventDefault();
}
public void setContentProvider(PopupContentProvider provider) {
contentProvider = provider;
}