public class DragMoveEvent extends <any> implements CancellableEvent
Modifier and Type | Class and Description |
---|---|
static interface |
DragMoveEvent.DragMoveHandler
Handler for
DragMoveEvent events. |
static interface |
DragMoveEvent.HasDragMoveHandlers
A widget that implements this interface is a public source of
DragMoveEvent events. |
Constructor and Description |
---|
DragMoveEvent(Widget target,
Element startElement,
int x,
int y,
Event event) |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(DragMoveEvent.DragMoveHandler handler) |
<any> |
getAssociatedType() |
NativeEvent |
getNativeEvent()
Returns the native event.
|
Draggable |
getSource() |
Element |
getStartElement() |
Widget |
getTarget() |
static <any> |
getType()
Gets the type associated with this event.
|
int |
getX()
Returns the widget's page coordinates.
|
int |
getY()
Returns the widget's page coordinates.
|
boolean |
isCancelled()
Returns true if the event is cancelled.
|
void |
setCancelled(boolean cancel)
True to cancel the event.
|
void |
setX(int x) |
void |
setY(int y) |
public DragMoveEvent(Widget target, Element startElement, int x, int y, Event event)
public static <any> getType()
public <any> getAssociatedType()
public NativeEvent getNativeEvent()
public Draggable getSource()
public Element getStartElement()
public Widget getTarget()
public int getX()
public int getY()
public boolean isCancelled()
CancellableEvent
isCancelled
in interface CancellableEvent
public void setCancelled(boolean cancel)
CancellableEvent
setCancelled
in interface CancellableEvent
cancel
- true to cancelpublic void setX(int x)
public void setY(int y)
protected void dispatch(DragMoveEvent.DragMoveHandler handler)
Copyright © 2018. All rights reserved.