Class DefaultDragAndDropData

    • Constructor Detail

      • DefaultDragAndDropData

        public DefaultDragAndDropData​(Context context,
                                      MIMEType mimeType,
                                      Object data)
    • Method Detail

      • isSupported

        public boolean isSupported​(MIMEType mimeType)
        Description copied from interface: DragAndDropData
        Gets whether the data can be provided as an object with the given MIME type.
      • getData

        public Object getData​(MIMEType mimeType)
        Description copied from interface: DragAndDropData
        Gets the data with respect to the given MIME type.
        Returns:
        The data object for the given MIME type. May return null if the data is requested too early in the drag-and-drop process, such as during a DragEnterEvent rather than a DropEvent.
      • getMIMETypes

        public List<MIMEType> getMIMETypes()
        Description copied from interface: DragAndDropData
        Gets the list of supported MIME types.