public interface DragAndDropData
Modifier and Type | Method and Description |
---|---|
default <T> T |
getData(Class<T> type)
Gets the data as an object of the given Java class.
|
Object |
getData(MIMEType mimeType)
Gets the data with respect to the given MIME type.
|
default MIMEType |
getMIMEType(Class<?> type)
Gets the best supported MIME type matching the given Java class.
|
List<MIMEType> |
getMIMETypes()
Gets the list of supported MIME types.
|
default boolean |
isSupported(Class<?> type)
Gets whether the data can be provided as an object of the given Java class.
|
boolean |
isSupported(MIMEType mimeType)
Gets whether the data can be provided as an object with the given MIME
type.
|
boolean isSupported(MIMEType mimeType)
default boolean isSupported(Class<?> type)
Object getData(MIMEType mimeType)
DragEnterEvent
rather than a DropEvent
.IllegalArgumentException
- if the MIME type is not supported.default <T> T getData(Class<T> type)
default MIMEType getMIMEType(Class<?> type)
Copyright © 2015–2022 SciJava. All rights reserved.