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, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getData, getMIMEType, isSupported
setContext
public boolean isSupported(MIMEType mimeType)
DragAndDropData
public Object getData(MIMEType mimeType)
DragAndDropData
DragEnterEvent
rather than a DropEvent
.public List<MIMEType> getMIMETypes()
DragAndDropData
Copyright © 2015–2022 SciJava. All rights reserved.