public class DragStartEvent extends GwtEvent<DragStartEvent.DragStartHandler> 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. |
GwtEvent.Type<H>
Constructor and Description |
---|
DragStartEvent(Widget target,
Element startElement,
int x,
int y,
Event event) |
Modifier and Type | Method and Description |
---|---|
GwtEvent.Type<DragStartEvent.DragStartHandler> |
getAssociatedType() |
int |
getHeight() |
NativeEvent |
getNativeEvent()
Returns the native event.
|
Draggable |
getSource() |
Element |
getStartElement() |
Widget |
getTarget() |
static GwtEvent.Type<DragStartEvent.DragStartHandler> |
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) |
toDebugString, toString
public static GwtEvent.Type<DragStartEvent.DragStartHandler> getType()
public GwtEvent.Type<DragStartEvent.DragStartHandler> getAssociatedType()
getAssociatedType
in class GwtEvent<DragStartEvent.DragStartHandler>
public int getHeight()
public NativeEvent getNativeEvent()
public Draggable getSource()
getSource
in class GwtEvent<DragStartEvent.DragStartHandler>
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)
Copyright © 2015. All rights reserved.