public class DefaultDragAndDropData extends AbstractDragAndDropData
DragAndDropData, which provides a
UI-agnostic way to bundle an object together with its MIME type.| Constructor and Description |
|---|
DefaultDragAndDropData(Context context,
MIMEType mimeType,
Object data) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getData(MIMEType mimeType)
Gets the data with respect to the given MIME type.
|
List<MIMEType> |
getMIMETypes()
Gets the list of supported MIME types.
|
boolean |
isSupported(MIMEType mimeType)
Gets whether the data can be provided as an object with the given MIME
type.
|
context, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getMIMEType, isSupportedsetContextpublic boolean isSupported(MIMEType mimeType)
DragAndDropDatapublic Object getData(MIMEType mimeType)
DragAndDropDataDragEnterEvent rather than a DropEvent.public List<MIMEType> getMIMETypes()
DragAndDropDataCopyright © 2015–2022 SciJava. All rights reserved.