H
- handler typepublic abstract class DragDropEventBase<H extends EventHandler> extends DomEvent<H>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
DragDropEventBase.DragSupportDetector
Detector for browser support of drag events.
|
(package private) static class |
DragDropEventBase.DragSupportDetectorNo
Detector for permutations that do not support drag events.
|
DomEvent.Type<H extends EventHandler>
Constructor and Description |
---|
DragDropEventBase() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getData(java.lang.String format)
Get the data for the specified format from the
DataTransfer object. |
DataTransfer |
getDataTransfer()
Get the
DataTransfer associated with the current drag event. |
static boolean |
isSupported()
Runtime check for whether drag events are supported in this browser.
|
void |
setData(java.lang.String format,
java.lang.String data)
Set the data in the
DataTransfer object for the specified format. |
fireNativeEvent, fireNativeEvent, getAssociatedType, getNativeEvent, getRelativeElement, init, preventDefault, setNativeEvent, setRelativeElement, stopPropagation
assertLive, dispatch, getSource, isLive, kill, revive
setSource, toDebugString, toString
public static boolean isSupported()
public java.lang.String getData(java.lang.String format)
DataTransfer
object.format
- the formatpublic DataTransfer getDataTransfer()
DataTransfer
associated with the current drag event.DataTransfer
objectpublic void setData(java.lang.String format, java.lang.String data)
DataTransfer
object for the specified format.format
- the formatdata
- the data to associate with the format