public class DragStartEvent extends <any> implements CancellableEvent
Modifier and Type | Class and Description |
---|---|
static interface |
DragStartEvent.DragStartHandler
Handler for
DragStartEvent events. |
static interface |
DragStartEvent.HasDragStartHandlers
A widget that implements this interface is a public source of
DragStartEvent events. |
Constructor and Description |
---|
DragStartEvent(Widget target,
Element startElement,
int x,
int y,
Event event) |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(DragStartEvent.DragStartHandler handler) |
<any> |
getAssociatedType() |
int |
getHeight() |
NativeEvent |
getNativeEvent()
Returns the native event.
|
Draggable |
getSource() |
Element |
getStartElement() |
Widget |
getTarget() |
static <any> |
getType()
Gets the type associated with this event.
|
int |
getWidth() |
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 |
setHeight(int height) |
void |
setWidth(int width) |
public DragStartEvent(Widget target, Element startElement, int x, int y, Event event)
public static <any> getType()
public <any> getAssociatedType()
public int getHeight()
public NativeEvent getNativeEvent()
public Draggable getSource()
public Element getStartElement()
public Widget getTarget()
public int getWidth()
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 setHeight(int height)
public void setWidth(int width)
protected void dispatch(DragStartEvent.DragStartHandler handler)
Copyright © 2018. All rights reserved.