com.sencha.gxt.fx.client
Class DragMoveEvent

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<DragMoveEvent.DragMoveHandler>
          extended by com.sencha.gxt.fx.client.DragMoveEvent
All Implemented Interfaces:
CancellableEvent

public class DragMoveEvent
extends GwtEvent<DragMoveEvent.DragMoveHandler>
implements CancellableEvent

Fires when a draggable item is moved.


Nested Class Summary
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.
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Constructor Summary
DragMoveEvent(Widget target, Element startElement, int x, int y, Event event)
           
 
Method Summary
 GwtEvent.Type<DragMoveEvent.DragMoveHandler> getAssociatedType()
           
 NativeEvent getNativeEvent()
          Returns the native event.
 Draggable getSource()
           
 Element getStartElement()
           
 Widget getTarget()
           
static GwtEvent.Type<DragMoveEvent.DragMoveHandler> 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)
           
 
Methods inherited from class com.google.web.bindery.event.shared.Event
toDebugString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DragMoveEvent

public DragMoveEvent(Widget target,
                     Element startElement,
                     int x,
                     int y,
                     Event event)
Method Detail

getType

public static GwtEvent.Type<DragMoveEvent.DragMoveHandler> getType()
Gets the type associated with this event.

Returns:
returns the handler type

getAssociatedType

public GwtEvent.Type<DragMoveEvent.DragMoveHandler> getAssociatedType()
Overrides:
getAssociatedType in class GwtEvent<DragMoveEvent.DragMoveHandler>

getNativeEvent

public NativeEvent getNativeEvent()
Returns the native event.

Returns:
the native event

getSource

public Draggable getSource()
Overrides:
getSource in class GwtEvent<DragMoveEvent.DragMoveHandler>

getStartElement

public Element getStartElement()

getTarget

public Widget getTarget()

getX

public int getX()
Returns the widget's page coordinates.

Returns:
the x-coordinate value

getY

public int getY()
Returns the widget's page coordinates.

Returns:
the y-coordinate value

isCancelled

public boolean isCancelled()
Description copied from interface: CancellableEvent
Returns true if the event is cancelled.

Specified by:
isCancelled in interface CancellableEvent
Returns:
true for cancelled

setCancelled

public void setCancelled(boolean cancel)
Description copied from interface: CancellableEvent
True to cancel the event.

Specified by:
setCancelled in interface CancellableEvent
Parameters:
cancel - true to cancel

setX

public void setX(int x)

setY

public void setY(int y)


Copyright © 2012. All Rights Reserved.