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
Nested ClassesModifier and TypeClassDescription(package private) static classDetector for browser support of drag events.(package private) static classDetector 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the data for the specified format from theDataTransferobject.Get theDataTransferassociated with the current drag event.static booleanRuntime check for whether drag events are supported in this browser.voidSet the data in theDataTransferobject for the specified format.Methods inherited from class com.google.gwt.event.dom.client.DomEvent
fireNativeEvent, fireNativeEvent, getAssociatedType, getNativeEvent, getRelativeElement, init, preventDefault, setNativeEvent, setRelativeElement, stopPropagationMethods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, dispatch, getSource, isLive, kill, reviveMethods 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 theDataTransferobject.- Parameters:
format- the format- Returns:
- the data for the specified format
-
getDataTransfer
Get theDataTransferassociated with the current drag event.- Returns:
- the
DataTransferobject
-
setData
Set the data in theDataTransferobject for the specified format.- Parameters:
format- the formatdata- the data to associate with the format
-