|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.apple.mrj.datatransfer.FileTransferable
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 |
public FileTransferable(IncomingDrag drag) throws UnsupportedFlavorException
Method Detail |
public TranslationSet getTranslationSet()
public Transferable[] getItems()
public boolean isFlavorTranslated(DataFlavor flavor)
public DataFlavor[] getTransferDataFlavors()
Transferable
getTransferDataFlavors
in interface Transferable
java.awt.datatransfer.Transferable
public boolean isDataFlavorSupported(DataFlavor flavor)
Transferable
isDataFlavorSupported
in interface Transferable
java.awt.datatransfer.Transferable
flavor
- the requested flavor for the datapublic Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException
Transferable
getTransferData
in interface Transferable
java.awt.datatransfer.Transferable
flavor
- the requested flavor for the dataIOException
- if the data is no longer available
in the requested flavor.UnsupportedFlavorException
- if the requested data flavor is
not supported.DataFlavor.getRepresentationClass()
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.