Package com.google.gwt.event.dom.client
Class DragDropEventBase<H extends EventHandler>
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<H>
com.google.gwt.event.dom.client.DomEvent<H>
com.google.gwt.event.dom.client.DragDropEventBase<H>
- Type Parameters:
H
- handler type
- All Implemented Interfaces:
HasNativeEvent
- Direct Known Subclasses:
DragEndEvent
,DragEnterEvent
,DragEvent
,DragLeaveEvent
,DragOverEvent
,DragStartEvent
,DropEvent
Base class for drag and drop events.
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Detector for browser support of drag events.(package private) static class
Detector for permutations that do not support drag events.Nested classes/interfaces inherited from class com.google.gwt.event.dom.client.DomEvent
DomEvent.Type<H extends EventHandler>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the data for the specified format from theDataTransfer
object.Get theDataTransfer
associated with the current drag event.static boolean
Runtime check for whether drag events are supported in this browser.void
Set the data in theDataTransfer
object for the specified format.Methods inherited from class com.google.gwt.event.dom.client.DomEvent
fireNativeEvent, fireNativeEvent, getAssociatedType, getNativeEvent, getRelativeElement, init, preventDefault, setNativeEvent, setRelativeElement, stopPropagation
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, dispatch, getSource, isLive, kill, revive
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
-
Constructor Details
-
DragDropEventBase
public DragDropEventBase()
-
-
Method Details
-
isSupported
public static boolean isSupported()Runtime check for whether drag events are supported in this browser.- Returns:
- true if supported, false if not
-
getData
Get the data for the specified format from theDataTransfer
object.- Parameters:
format
- the format- Returns:
- the data for the specified format
-
getDataTransfer
Get theDataTransfer
associated with the current drag event.- Returns:
- the
DataTransfer
object
-
setData
Set the data in theDataTransfer
object for the specified format.- Parameters:
format
- the formatdata
- the data to associate with the format
-