protected void startDrag(DragEvent de) { dragging = true; WindowManager.get().bringToFront(this); hideShadow(); ghost = ghost(); if (eventPreview != null && ghost != null) { eventPreview.getIgnoreList().add(ghost.dom); } showWindow(false); Draggable d = de.getDraggable(); d.setProxy(ghost); }
protected void unghost(DragEvent de) { showWindow(true); setPagePosition(de.getX(), de.getY()); }