org.xnap.gui.util
Class TransferableFile

java.lang.Object
  extended by org.xnap.gui.util.TransferableFile
All Implemented Interfaces:
java.awt.datatransfer.Transferable

public class TransferableFile
extends java.lang.Object
implements java.awt.datatransfer.Transferable

TransferableFile contains the files which are dragged by DragFilesSupport and received by for instance a DroppableTree.


Field Summary
static java.awt.datatransfer.DataFlavor FILE_FLAVOR
           
protected  FileArray fileArray
           
protected static java.awt.datatransfer.DataFlavor[] flavors
           
 
Constructor Summary
TransferableFile(java.io.File[] files)
           
 
Method Summary
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
           
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
           
 boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_FLAVOR

public static final java.awt.datatransfer.DataFlavor FILE_FLAVOR

fileArray

protected FileArray fileArray

flavors

protected static java.awt.datatransfer.DataFlavor[] flavors
Constructor Detail

TransferableFile

public TransferableFile(java.io.File[] files)
Method Detail

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException
Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable


Copyright © 2001-2005 XNap Team. All Rights Reserved.