Documentation of 'org.jhotdraw.gui.datatransfer.CompositeTransferable' Java class
CompositeTransferable
org.jhotdraw.gui.datatransfer

Class CompositeTransferable

  • All Implemented Interfaces:
    java.awt.datatransfer.ClipboardOwner, java.awt.datatransfer.Transferable


    public class CompositeTransferable
    extends java.lang.Object
    implements java.awt.datatransfer.Transferable, java.awt.datatransfer.ClipboardOwner
    ComoositeTransferable.
    • Constructor Summary

      Constructors 
      Constructor and Description
      CompositeTransferable()
      Creates a new instance of CompositeTransferable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(java.awt.datatransfer.Transferable t) 
      java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
      Returns an object which represents the data to be transferred.
      java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
      Returns an array of DataFlavor objects indicating the flavors the data can be provided in.
      boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
      Returns whether or not the specified data flavor is supported for this object.
      void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CompositeTransferable

        public CompositeTransferable()
        Creates a new instance of CompositeTransferable
    • Method Detail

      • add

        public void add(java.awt.datatransfer.Transferable t)
      • getTransferData

        public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
                                         throws java.awt.datatransfer.UnsupportedFlavorException,
                                                java.io.IOException
        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 java.awt.datatransfer.Transferable
        Parameters:
        flavor - the requested flavor for the data
        Throws:
        java.io.IOException - if the data is no longer available in the requested flavor.
        java.awt.datatransfer.UnsupportedFlavorException - if the requested data flavor is not supported.
        See Also:
        DataFlavor.getRepresentationClass()
      • getTransferDataFlavors

        public java.awt.datatransfer.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).
        Specified by:
        getTransferDataFlavors in interface java.awt.datatransfer.Transferable
        Returns:
        an array of data flavors in which this data can be transferred
      • isDataFlavorSupported

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

        public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
                                  java.awt.datatransfer.Transferable contents)
        Specified by:
        lostOwnership in interface java.awt.datatransfer.ClipboardOwner

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.