public abstract class AbstractTreeTransferHandler extends Object implements DragGestureListener, DragSourceListener, DropTargetListener
Modifier | Constructor and Description |
---|---|
protected |
AbstractTreeTransferHandler(DNDTree tree,
int action,
boolean drawIcon) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canPerformAction(DNDTree target,
DefaultMutableTreeNode nodeDragged,
int action,
Point location) |
protected void |
destroy() |
void |
dragDropEnd(DragSourceDropEvent dsde) |
void |
dragEnter(DragSourceDragEvent dsde) |
void |
dragEnter(DropTargetDragEvent dtde) |
void |
dragExit(DragSourceEvent dse) |
void |
dragExit(DropTargetEvent dte) |
void |
dragGestureRecognized(DragGestureEvent dge) |
void |
dragOver(DragSourceDragEvent dsde) |
void |
dragOver(DropTargetDragEvent dtde) |
void |
drop(DropTargetDropEvent dtde) |
void |
dropActionChanged(DragSourceDragEvent dsde) |
void |
dropActionChanged(DropTargetDragEvent dtde) |
abstract boolean |
executeDrop(DNDTree target,
DefaultMutableTreeNode nodeDragged,
DefaultMutableTreeNode newParentNode,
int action) |
protected AbstractTreeTransferHandler(DNDTree tree, int action, boolean drawIcon)
protected void destroy()
public void dragDropEnd(DragSourceDropEvent dsde)
dragDropEnd
in interface DragSourceListener
public final void dragEnter(DragSourceDragEvent dsde)
dragEnter
in interface DragSourceListener
public final void dragOver(DragSourceDragEvent dsde)
dragOver
in interface DragSourceListener
public final void dropActionChanged(DragSourceDragEvent dsde)
dropActionChanged
in interface DragSourceListener
public final void dragExit(DragSourceEvent dse)
dragExit
in interface DragSourceListener
public final void dragGestureRecognized(DragGestureEvent dge)
dragGestureRecognized
in interface DragGestureListener
public final void dragEnter(DropTargetDragEvent dtde)
dragEnter
in interface DropTargetListener
public final void dragExit(DropTargetEvent dte)
dragExit
in interface DropTargetListener
public final void dragOver(DropTargetDragEvent dtde)
dragOver
in interface DropTargetListener
public final void dropActionChanged(DropTargetDragEvent dtde)
dropActionChanged
in interface DropTargetListener
public final void drop(DropTargetDropEvent dtde)
drop
in interface DropTargetListener
public abstract boolean canPerformAction(DNDTree target, DefaultMutableTreeNode nodeDragged, int action, Point location)
public abstract boolean executeDrop(DNDTree target, DefaultMutableTreeNode nodeDragged, DefaultMutableTreeNode newParentNode, int action)
Copyright © 2015–2021 Fiji. All rights reserved.