H
- handler typepublic abstract class DragDropEventBase<H extends EventHandler> extends DomEvent<H>
DomEvent.Type<H extends EventHandler>
Constructor and Description |
---|
DragDropEventBase() |
Modifier and Type | Method and Description |
---|---|
String |
getData(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(String format,
String data)
Set the data in the
DataTransfer object for the specified format. |
fireNativeEvent, fireNativeEvent, getAssociatedType, getNativeEvent, getRelativeElement, preventDefault, setNativeEvent, setRelativeElement, stopPropagation
assertLive, dispatch, getSource, isLive, kill, revive
public static boolean isSupported()
public String getData(String format)
DataTransfer
object.format
- the formatpublic DataTransfer getDataTransfer()
DataTransfer
associated with the current drag event.DataTransfer
objectpublic void setData(String format, String data)
DataTransfer
object for the specified format.format
- the formatdata
- the data to associate with the formatCopyright © 2018. All rights reserved.