com.alee.laf.filechooser
Class WebFileChooserPanel.FilesLocateDropHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by com.alee.extended.drag.FileDragAndDropHandler
          extended by com.alee.laf.filechooser.WebFileChooserPanel.FilesLocateDropHandler
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
WebFileChooserPanel

protected class WebFileChooserPanel.FilesLocateDropHandler
extends FileDragAndDropHandler

FileDragAndDropHandler extension to provide drop-to-find-file functionality.

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
protected  WebFileChooserPanel.UpdateSource updateSource
          Source of updates.
 
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
WebFileChooserPanel.FilesLocateDropHandler(WebFileChooserPanel.UpdateSource updateSource)
          Constructs new FilesLocateDropHandler.
 
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
 

Field Detail

updateSource

protected WebFileChooserPanel.UpdateSource updateSource
Source of updates.

Constructor Detail

WebFileChooserPanel.FilesLocateDropHandler

public WebFileChooserPanel.FilesLocateDropHandler(WebFileChooserPanel.UpdateSource updateSource)
Constructs new FilesLocateDropHandler.

Parameters:
updateSource - source of updates
Method Detail

filesDropped

public boolean filesDropped(java.util.List<java.io.File> files)
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