com.sencha.gxt.fx.client
Class DragStartEvent

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

public class DragStartEvent
extends GwtEvent<DragStartEvent.DragStartHandler>
implements CancellableEvent

Represents the drag start event.


Nested Class Summary
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.
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Constructor Summary
DragStartEvent(Widget target, Element startElement, int x, int y, Event event)
           
 
Method Summary
 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)
           
 
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

DragStartEvent

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

getType

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

Returns:
returns the handler type

getAssociatedType

public GwtEvent.Type<DragStartEvent.DragStartHandler> getAssociatedType()
Overrides:
getAssociatedType in class GwtEvent<DragStartEvent.DragStartHandler>

getHeight

public int getHeight()

getNativeEvent

public NativeEvent getNativeEvent()
Returns the native event.

Returns:
the event

getSource

public Draggable getSource()
Overrides:
getSource in class GwtEvent<DragStartEvent.DragStartHandler>

getStartElement

public Element getStartElement()

getTarget

public Widget getTarget()

getWidth

public int getWidth()

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

setHeight

public void setHeight(int height)

setWidth

public void setWidth(int width)


Copyright © 2012. All Rights Reserved.