Class AbstractImageComponent.DefaultTransferable

java.lang.Object
io.guise.framework.component.transfer.AbstractTransferable<ImageComponent>
io.guise.framework.component.AbstractImageComponent.DefaultTransferable
All Implemented Interfaces:
Transferable<ImageComponent>
Enclosing class:
AbstractImageComponent

protected static class AbstractImageComponent.DefaultTransferable extends AbstractTransferable<ImageComponent>
The default transferable object for an image.
Author:
Garret Wilson
  • Constructor Details

    • DefaultTransferable

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

    • getContentTypes

      public com.globalmentor.net.MediaType[] 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 Object transfer(com.globalmentor.net.MediaType 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.