public class DropPanel
extends com.google.gwt.user.client.ui.SimplePanel
implements com.google.gwt.event.dom.client.HasDropHandlers, com.google.gwt.event.dom.client.HasDragEnterHandlers, com.google.gwt.event.dom.client.HasDragLeaveHandlers, com.google.gwt.event.dom.client.HasDragOverHandlers
| Modifier and Type | Field and Description |
|---|---|
protected static com.google.gwt.event.shared.EventBus |
eventBus
The event bus shared by all drop panels
|
| Constructor and Description |
|---|
DropPanel()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addDragEnterHandler(com.google.gwt.event.dom.client.DragEnterHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragLeaveHandler(com.google.gwt.event.dom.client.DragLeaveHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragOverHandler(com.google.gwt.event.dom.client.DragOverHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDropHandler(com.google.gwt.event.dom.client.DropHandler handler) |
void |
dispatch(com.google.gwt.dom.client.NativeEvent event)
Dispatches the specified event to this node
event handlers
|
void |
fireEvent(com.google.gwt.event.shared.GwtEvent<?> event) |
static com.google.gwt.event.shared.EventBus |
getEventBus()
Returns the event bus shared by all drop panels
|
protected boolean |
isChildOf(com.google.gwt.dom.client.Node root,
com.google.gwt.dom.client.Node node)
Tests if a node is part of a DOM subtree.
|
static void |
setEventBus(com.google.gwt.event.shared.EventBus eventBus)
Sets the event bus shared by all drop panels
|
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidgetadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected static com.google.gwt.event.shared.EventBus eventBus
public DropPanel()
public static com.google.gwt.event.shared.EventBus getEventBus()
public static void setEventBus(com.google.gwt.event.shared.EventBus eventBus)
eventBus - the event bus shared by all drop panelspublic void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
fireEvent in interface com.google.gwt.event.shared.HasHandlersfireEvent in class com.google.gwt.user.client.ui.Widgetpublic void dispatch(com.google.gwt.dom.client.NativeEvent event)
event - The event to dispatchprotected boolean isChildOf(com.google.gwt.dom.client.Node root,
com.google.gwt.dom.client.Node node)
root - The subtree rootnode - The node to be testedpublic com.google.gwt.event.shared.HandlerRegistration addDropHandler(com.google.gwt.event.dom.client.DropHandler handler)
addDropHandler in interface com.google.gwt.event.dom.client.HasDropHandlerspublic com.google.gwt.event.shared.HandlerRegistration addDragLeaveHandler(com.google.gwt.event.dom.client.DragLeaveHandler handler)
addDragLeaveHandler in interface com.google.gwt.event.dom.client.HasDragLeaveHandlerspublic com.google.gwt.event.shared.HandlerRegistration addDragEnterHandler(com.google.gwt.event.dom.client.DragEnterHandler handler)
addDragEnterHandler in interface com.google.gwt.event.dom.client.HasDragEnterHandlerspublic com.google.gwt.event.shared.HandlerRegistration addDragOverHandler(com.google.gwt.event.dom.client.DragOverHandler handler)
addDragOverHandler in interface com.google.gwt.event.dom.client.HasDragOverHandlersCopyright © 2017. All Rights Reserved.