|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DragAndDropData
Interface for drag-and-drop data.
Method Summary | ||
---|---|---|
|
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. |
|
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. |
|
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. |
Method Detail |
---|
boolean isSupported(MIMEType mimeType)
boolean isSupported(Class<?> type)
Object getData(MIMEType mimeType)
DragEnterEvent
rather than a DropEvent
.
IllegalArgumentException
- if the MIME type is not supported.<T> T getData(Class<T> type)
MIMEType getMIMEType(Class<?> type)
List<MIMEType> getMIMETypes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |