JavaTM 2 Platform
Std. Ed. v1.3.1

com.apple.mrj.datatransfer
Class FileTransferable

java.lang.Object
  |
  +--com.apple.mrj.datatransfer.FileTransferable
All Implemented Interfaces:
Transferable

Deprecated. As of MacOSX 10.2

public class FileTransferable
extends Object
implements Transferable

A wrapper for an array of HFS-typed Transferables, which is necessary to resolve the difference between the Java2 file drag and drop paradigm (files returned as a single list) and the Kucing file drag and drop paradigm (files are no more special than any other type of data). If Javasoft ever supports generic multiple object drag and drop, this class probably won't be necessary any more. Note that this class will not be seen by any clients that implement the Kucing APIs, who will continue to be able to walk the items of the drag as expected. Certain methods in this class assume that they will only be accessed by those using Java2 drag and drop, which means that the only permissible flavor for a drag involving multiple objects is DataFlavor.javaFileListFlavor.


Constructor Summary
FileTransferable(IncomingDrag drag)
          Deprecated. Creates a FileTransferable from the IncomingDrag with the default translation set.
 
Method Summary
 Transferable[] getItems()
          Deprecated. Returns the items stored in the transferable
 Object getTransferData(DataFlavor flavor)
          Deprecated. Returns an object which represents the data to be transferred.
 DataFlavor[] getTransferDataFlavors()
          Deprecated. Returns an array of DataFlavor objects indicating the flavors the data can be provided in.
 TranslationSet getTranslationSet()
          Deprecated. Returns the TranslationSet that this object uses to perform its translations.
 boolean isDataFlavorSupported(DataFlavor flavor)
          Deprecated. Returns whether or not the specified data flavor is supported for this object.
 boolean isFlavorTranslated(DataFlavor flavor)
          Deprecated. Determines whether a flavor is the result of a translation or whether it came from the source Transferable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTransferable

public FileTransferable(IncomingDrag drag)
                 throws UnsupportedFlavorException
Deprecated. 
Creates a FileTransferable from the IncomingDrag with the default translation set. All objects must support the HFS flavor.
Method Detail

getTranslationSet

public TranslationSet getTranslationSet()
Deprecated. 
Returns the TranslationSet that this object uses to perform its translations.

getItems

public Transferable[] getItems()
Deprecated. 
Returns the items stored in the transferable

isFlavorTranslated

public boolean isFlavorTranslated(DataFlavor flavor)
Deprecated. 
Determines whether a flavor is the result of a translation or whether it came from the source Transferable.

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()
Deprecated. 
Description copied from interface: Transferable
Returns an array of DataFlavor objects indicating the flavors the data can be provided in. The array should be ordered according to preference for providing the data (from most richly descriptive to least descriptive).
Specified by:
getTransferDataFlavors in interface Transferable
Following copied from interface: java.awt.datatransfer.Transferable
Returns:
an array of data flavors in which this data can be transferred

isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor flavor)
Deprecated. 
Description copied from interface: Transferable
Returns whether or not the specified data flavor is supported for this object.
Specified by:
isDataFlavorSupported in interface Transferable
Following copied from interface: java.awt.datatransfer.Transferable
Parameters:
flavor - the requested flavor for the data
Returns:
boolean indicating wjether or not the data flavor is supported

getTransferData

public Object getTransferData(DataFlavor flavor)
                       throws UnsupportedFlavorException
Deprecated. 
Description copied from interface: Transferable
Returns an object which represents the data to be transferred. The class of the object returned is defined by the representation class of the flavor.
Specified by:
getTransferData in interface Transferable
Following copied from interface: java.awt.datatransfer.Transferable
Parameters:
flavor - the requested flavor for the data
Throws:
IOException - if the data is no longer available in the requested flavor.
UnsupportedFlavorException - if the requested data flavor is not supported.
See Also:
DataFlavor.getRepresentationClass()

JavaTM 2 Platform
Std. Ed. v1.3.1

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.