wjhk.jupload2.gui
Class JUploadTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by wjhk.jupload2.gui.JUploadTransferHandler
All Implemented Interfaces:
Serializable

 class JUploadTransferHandler
extends TransferHandler


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
 
Field Summary
(package private)  DataFlavor fileListFlavor
           
(package private)  JUploadPanel uploadPanel
          The JUpload panel for this applet.
(package private)  UploadPolicy uploadPolicy
          The current upload policy.
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
 
Constructor Summary
JUploadTransferHandler(UploadPolicy uploadPolicy, JUploadPanel uploadPanel)
          The standard constructor.
 
Method Summary
 boolean canImport(JComponent c, DataFlavor[] flavors)
           
 int getSourceActions(JComponent c)
           
 boolean importData(JComponent c, Transferable t)
           
 
Methods inherited from class javax.swing.TransferHandler
canImport, createTransferable, 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

fileListFlavor

DataFlavor fileListFlavor

uploadPanel

JUploadPanel uploadPanel
The JUpload panel for this applet.


uploadPolicy

UploadPolicy uploadPolicy
The current upload policy.

Constructor Detail

JUploadTransferHandler

public JUploadTransferHandler(UploadPolicy uploadPolicy,
                              JUploadPanel uploadPanel)
The standard constructor.

Parameters:
uploadPolicy - The current uploadPolicy
uploadPanel - The JUploadPanel. Must given here, as this constructor is called in the JUploadPanel construction. So the uploadPolicy.getUploadPanel() returns null.
Method Detail

importData

public boolean importData(JComponent c,
                          Transferable t)
Overrides:
importData in class TransferHandler
See Also:
TransferHandler.importData(javax.swing.JComponent, java.awt.datatransfer.Transferable)

getSourceActions

public int getSourceActions(JComponent c)
Overrides:
getSourceActions in class TransferHandler
See Also:
TransferHandler.getSourceActions(javax.swing.JComponent)

canImport

public boolean canImport(JComponent c,
                         DataFlavor[] flavors)
Overrides:
canImport in class TransferHandler
See Also:
TransferHandler.canImport(javax.swing.JComponent, java.awt.datatransfer.DataFlavor[])