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.
|
getData, getMIMEType, isSupportedcontext, getContext, setContextpublic boolean isSupported(MIMEType mimeType)
DragAndDropDatapublic Object getData(MIMEType mimeType)
DragAndDropDataDragEnterEvent rather than a DropEvent.public List<MIMEType> getMIMETypes()
DragAndDropDataCopyright © 2009–2016 SciJava. All rights reserved.