Class AbstractImageComponent.DefaultTransferable

    • Constructor Detail

      • DefaultTransferable

        public DefaultTransferable​(ImageComponent source)
        Source constructor.
        Parameters:
        source - The source of the transferable data.
        Throws:
        java.lang.NullPointerException - if the provided source is null.
    • Method Detail

      • getContentTypes

        public com.globalmentor.net.ContentType[] getContentTypes()

        This implementation returns a URI-list content type and the content type of the label.

        Returns:
        The content types available for this transfer.
      • transfer

        public java.lang.Object transfer​(com.globalmentor.net.ContentType contentType)
        Description copied from interface: Transferable
        Transfers data using the given content type.
        Parameters:
        contentType - The type of data expected.
        Returns:
        The transferred data, which may be null.