JavaTM 2 Platform
Std. Ed. v1.3.1

com.apple.mrj.datatransfer
Class TranslatedTransferable

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

Deprecated. As of MacOSX 10.2

public class TranslatedTransferable
extends Object
implements FlaggedTransferable

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

TranslatedTransferable

public TranslatedTransferable(Transferable source,
                              TranslationSet trans)
Deprecated. 
Creates a TranslatedTransferable based on a source Transferable and the translations currently available from the given TranslationSet.

TranslatedTransferable

public TranslatedTransferable(Transferable source)
Deprecated. 
Creates a TranslatedTransferable based on a source Transferable and the translations currently available from the standard TranslationSet.
See Also:
TranslationSet.standard
Method Detail

getSource

public Transferable getSource()
Deprecated. 
Returns the original Transferable that this object is translating.

getTranslationSet

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

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,
                              IOException
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()

getDataFlavorFlags

public int getDataFlavorFlags(DataFlavor flavor)
                       throws UnsupportedFlavorException
Deprecated. 
Description copied from interface: FlaggedTransferable
Returns the flags associated with a particular data flavor.
Specified by:
getDataFlavorFlags in interface FlaggedTransferable

getSourceOfFlavor

public 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.

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.