com.sencha.gxt.dnd.core.client
Class DndDragEnterEvent

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<DndDragEnterEvent.DndDragEnterHandler>
          extended by com.sencha.gxt.dnd.core.client.DndDragEnterEvent
All Implemented Interfaces:
CancellableEvent

public class DndDragEnterEvent
extends GwtEvent<DndDragEnterEvent.DndDragEnterHandler>
implements CancellableEvent

Fires when a drag enters a drop target.


Nested Class Summary
static interface DndDragEnterEvent.DndDragEnterHandler
          Handler for DndDragEnterEvent events.
static interface DndDragEnterEvent.HasDndDragEnterHandlers
          A widget that implements this interface is a public source of DndDragEnterEvent events.
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Constructor Summary
DndDragEnterEvent(Widget target, DragSource dragSource, DragMoveEvent event, StatusProxy status)
           
 
Method Summary
 GwtEvent.Type<DndDragEnterEvent.DndDragEnterHandler> getAssociatedType()
           
 DragMoveEvent getDragEnterEvent()
           
 DragSource getDragSource()
           
 NativeEvent getNativeEvent()
          Returns the native event.
 Draggable getSource()
           
 StatusProxy getStatusProxy()
           
 Widget getTarget()
           
static GwtEvent.Type<DndDragEnterEvent.DndDragEnterHandler> getType()
          Gets the type associated with this event.
 boolean isCancelled()
          Returns true if the event is cancelled.
 void setCancelled(boolean cancel)
          True to cancel the event.
 
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

DndDragEnterEvent

public DndDragEnterEvent(Widget target,
                         DragSource dragSource,
                         DragMoveEvent event,
                         StatusProxy status)
Method Detail

getType

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

Returns:
returns the handler type

getAssociatedType

public GwtEvent.Type<DndDragEnterEvent.DndDragEnterHandler> getAssociatedType()
Overrides:
getAssociatedType in class GwtEvent<DndDragEnterEvent.DndDragEnterHandler>

getDragEnterEvent

public DragMoveEvent getDragEnterEvent()

getDragSource

public DragSource getDragSource()

getNativeEvent

public NativeEvent getNativeEvent()
Returns the native event.

Returns:
the event

getSource

public Draggable getSource()
Overrides:
getSource in class GwtEvent<DndDragEnterEvent.DndDragEnterHandler>

getStatusProxy

public StatusProxy getStatusProxy()

getTarget

public Widget getTarget()

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


Copyright © 2012. All Rights Reserved.