Package se.datadosen.jalbum
Class RemoteFSTreeTransferHandler
java.lang.Object
se.datadosen.dnd.AbstractTreeTransferHandler
se.datadosen.jalbum.RemoteFSTreeTransferHandler
- All Implemented Interfaces:
DragGestureListener
,DragSourceListener
,DropTargetListener
,EventListener
-
Field Summary
Fields inherited from class se.datadosen.dnd.AbstractTreeTransferHandler
dragSource, tree
-
Constructor Summary
ConstructorDescriptionRemoteFSTreeTransferHandler
(JTree tree, JPublishWizard publishWizard, UploadBean uploadBean, int action) -
Method Summary
Modifier and TypeMethodDescriptionint
albumObjectsDragged
(DropTargetDragEvent dtde, int action, Point location) boolean
canDropNode
(DropTargetContext dtc, DefaultMutableTreeNode draggedNode, int action, Point location) boolean
executeAlbumObjectDrop
(DefaultMutableTreeNode newParentNode, DropTargetDropEvent dtde) boolean
executeDrop
(List<File> droppedFiles, DefaultMutableTreeNode newParentNode, DropTargetDropEvent dtde) boolean
executeDrop
(DefaultMutableTreeNode dragged, DefaultMutableTreeNode newParent, DropTargetDropEvent dtde) int
filesDragged
(DropTargetDragEvent dtde, int action, Point location) Methods inherited from class se.datadosen.dnd.AbstractTreeTransferHandler
autoscroll, decideDropAction, dragDropEnd, dragEnter, dragEnter, dragExit, dragExit, dragGestureRecognized, dragOver, dragOver, drop, dropActionChanged, dropActionChanged, resolveTargetNode
-
Constructor Details
-
RemoteFSTreeTransferHandler
public RemoteFSTreeTransferHandler(JTree tree, JPublishWizard publishWizard, UploadBean uploadBean, int action)
-
-
Method Details
-
canDropNode
public boolean canDropNode(DropTargetContext dtc, DefaultMutableTreeNode draggedNode, int action, Point location) - Specified by:
canDropNode
in classAbstractTreeTransferHandler
-
executeDrop
public boolean executeDrop(DefaultMutableTreeNode dragged, DefaultMutableTreeNode newParent, DropTargetDropEvent dtde) - Specified by:
executeDrop
in classAbstractTreeTransferHandler
-
filesDragged
- Specified by:
filesDragged
in classAbstractTreeTransferHandler
-
executeDrop
public boolean executeDrop(List<File> droppedFiles, DefaultMutableTreeNode newParentNode, DropTargetDropEvent dtde) - Specified by:
executeDrop
in classAbstractTreeTransferHandler
-
executeAlbumObjectDrop
public boolean executeAlbumObjectDrop(DefaultMutableTreeNode newParentNode, DropTargetDropEvent dtde) - Specified by:
executeAlbumObjectDrop
in classAbstractTreeTransferHandler
-
albumObjectsDragged
- Specified by:
albumObjectsDragged
in classAbstractTreeTransferHandler
-