Interface Transferable

    • Method Summary

      Modifier and Type Method and Description
      Object getTransferData(DataFlavor flavor)
      Returns an object which represents the data to be transferred.
      DataFlavor[] getTransferDataFlavors()
      Returns an array of DataFlavor objects indicating the flavors the data can be provided in.
      boolean isDataFlavorSupported(DataFlavor flavor)
      Returns whether or not the specified data flavor is supported for this object.
    • Method Detail

      • getTransferDataFlavors

        DataFlavor[] getTransferDataFlavors()
        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).
        Returns:
        an array of data flavors in which this data can be transferred
      • isDataFlavorSupported

        boolean isDataFlavorSupported(DataFlavor flavor)
        Returns whether or not the specified data flavor is supported for this object.
        Parameters:
        flavor - the requested flavor for the data
        Returns:
        boolean indicating whether or not the data flavor is supported