public abstract class AbstractDragAndDropHandler extends Object implements com.google.gwt.event.dom.client.DragStartHandler, com.google.gwt.event.dom.client.DragEndHandler, com.google.gwt.event.dom.client.DropHandler, com.google.gwt.event.dom.client.DragOverHandler, AbstractCustomHandler
Modifier and Type | Field and Description |
---|---|
private com.google.gwt.user.client.ui.Widget |
widget |
Constructor and Description |
---|
AbstractDragAndDropHandler()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected com.google.gwt.user.client.ui.Widget |
getWidget() |
protected boolean |
isActive()
This method can be overridden for dynamic activation of this handler.
|
void |
onDragOver(com.google.gwt.event.dom.client.DragOverEvent event)
ATTENTION: This method is invoked on the listener registered on the widget that is currently under the dragged item and NOT on the widget that is actually dragged around. |
void |
onDragStart(com.google.gwt.event.dom.client.DragStartEvent event) |
void |
onDrop(com.google.gwt.event.dom.client.DropEvent event) |
void |
register(com.google.gwt.user.client.ui.Widget dragWidget,
HandlerRegistrationCollector collector)
This method registers this custom handler in the given
Widget . |
private com.google.gwt.user.client.ui.Widget widget
getWidget()
protected com.google.gwt.user.client.ui.Widget getWidget()
public void register(com.google.gwt.user.client.ui.Widget dragWidget, HandlerRegistrationCollector collector)
Widget
. It will also ensure that the
Widget
is properly configured to send the required events (e.g. via
sends
).register
in interface AbstractCustomHandler
dragWidget
- is the Widget
where to register this handler.collector
- is the HandlerRegistrationCollector
where to collect the
HandlerRegistration
(s) of the registered handlers. May be
null
to ignore all registrations.protected boolean isActive()
true
if this handler is active, false
if it is inactive (ignores all
events and does nothing).public void onDragStart(com.google.gwt.event.dom.client.DragStartEvent event)
onDragStart
in interface com.google.gwt.event.dom.client.DragStartHandler
public void onDragOver(com.google.gwt.event.dom.client.DragOverEvent event)
onDragOver
in interface com.google.gwt.event.dom.client.DragOverHandler
public void onDrop(com.google.gwt.event.dom.client.DropEvent event)
onDrop
in interface com.google.gwt.event.dom.client.DropHandler
Copyright © 2001–2016 mmm-Team. All rights reserved.