|
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.TranslatedTransferable
A wrapper for a Transferable object, which automatically provides translations of its intrinsic flavors.
Fields inherited from interface com.apple.mrj.datatransfer.FlaggedTransferable |
kFlavorNotSaved, kFlavorSenderOnly, kFlavorSenderTranslated, kFlavorSystemTranslated |
Constructor Summary | |
TranslatedTransferable(Transferable source)
Deprecated. Creates a TranslatedTransferable based on a source Transferable and the translations currently available from the standard TranslationSet. |
|
TranslatedTransferable(Transferable source,
TranslationSet trans)
Deprecated. Creates a TranslatedTransferable based on a source Transferable and the translations currently available from the given TranslationSet. |
Method Summary | |
int |
getDataFlavorFlags(DataFlavor flavor)
Deprecated. Returns the flags associated with a particular data flavor. |
Transferable |
getSource()
Deprecated. Returns the original Transferable that this object is translating. |
static Transferable |
getSourceOfFlavor(Transferable t,
DataFlavor flavor)
Deprecated. Strips any wrapped TranslatedTransferables off of the given Transferable, returning (presumably) the object that actually provides the given flavor. |
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 TranslatedTransferable(Transferable source, TranslationSet trans)
public TranslatedTransferable(Transferable source)
TranslationSet.standard
Method Detail |
public Transferable getSource()
public TranslationSet getTranslationSet()
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, IOException
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()
public int getDataFlavorFlags(DataFlavor flavor) throws UnsupportedFlavorException
FlaggedTransferable
getDataFlavorFlags
in interface FlaggedTransferable
public static Transferable getSourceOfFlavor(Transferable t, DataFlavor flavor)
|
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.