com.alee.extended.image
Class GalleryTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by com.alee.extended.drag.FileDragAndDropHandler
          extended by com.alee.extended.image.GalleryTransferHandler
All Implemented Interfaces:
java.io.Serializable

public class GalleryTransferHandler
extends FileDragAndDropHandler

Author:
Mikle Garin
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.TransferHandler
javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport
 
Field Summary
 
Fields inherited from class com.alee.extended.drag.FileDragAndDropHandler
dragAction, dragEnabled, dropEnabled
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
 
Constructor Summary
GalleryTransferHandler(WebImageGallery gallery)
           
 
Method Summary
 boolean filesDropped(java.util.List<java.io.File> files)
          Informs that specified files were dropped.
 
Methods inherited from class com.alee.extended.drag.FileDragAndDropHandler
canImport, createTransferable, fileDragged, filesDragged, getDragAction, getSourceActions, importData, importData, isDragEnabled, isDropEnabled, setDragAction, setDragEnabled, setDropEnabled
 
Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation, importData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GalleryTransferHandler

public GalleryTransferHandler(WebImageGallery gallery)
Method Detail

filesDropped

public boolean filesDropped(java.util.List<java.io.File> files)
Description copied from class: FileDragAndDropHandler
Informs that specified files were dropped. You can override this method to perform desired actions.

Overrides:
filesDropped in class FileDragAndDropHandler
Parameters:
files - list of dropped files
Returns:
true if drop was completed, false otherwise