com.extjs.gxt.ui.client.event
Class DNDEvent

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseEvent
      extended by com.extjs.gxt.ui.client.event.DomEvent
          extended by com.extjs.gxt.ui.client.event.DNDEvent

public class DNDEvent
extends DomEvent

Drag and drop event type.

Note: For a given event, only the fields which are appropriate will be filled in. The appropriate fields for each event are documented by the event source.


Field Summary
 
Fields inherited from class com.extjs.gxt.ui.client.event.DomEvent
event
 
Constructor Summary
DNDEvent(DragSource source)
           
DNDEvent(DragSource source, com.google.gwt.user.client.Event event)
           
 
Method Summary
 Component getComponent()
          Returns the source component.
<X> X
getData()
          Returns the dnd data.
 DragEvent getDragEvent()
          Returns the drag event.
 DragSource getDragSource()
          Returns the drag source.
 DropTarget getDropTarget()
          Returns the drop target.
 DND.Operation getOperation()
          Returns the operation.
 StatusProxy getStatus()
          Returns the status proxy.
 void setComponent(Component component)
          Sets the source component
 void setData(java.lang.Object data)
          Sets the drag and drop data.
 void setDragEvent(DragEvent dragEvent)
          Sets the drag event.
 void setDragSource(DragSource dragSource)
          Sets the drag source.
 void setDropTarget(DropTarget dragTarget)
          Sets the drop target.
 void setOperation(DND.Operation operation)
          Sets the operation.
 void setStatus(StatusProxy status)
          Sets the status proxy.
 
Methods inherited from class com.extjs.gxt.ui.client.event.DomEvent
cancelBubble, getClientX, getClientY, getEvent, getEventTypeInt, getKeyCode, getTarget, getTarget, getTargetEl, getXY, hasModifier, isAltKey, isControlKey, isNavKeyPress, isNavKeyPress, isRightClick, isShiftKey, isSpecialKey, isSpecialKey, preventDefault, setEvent, stopEvent, within, within
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseEvent
getSource, getType, isCancelled, setCancelled, setSource, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DNDEvent

public DNDEvent(DragSource source)

DNDEvent

public DNDEvent(DragSource source,
                com.google.gwt.user.client.Event event)
Method Detail

getComponent

public Component getComponent()
Returns the source component.

Returns:
the component

getData

public <X> X getData()
Returns the dnd data.

Type Parameters:
X - the data type
Returns:
the data

getDragEvent

public DragEvent getDragEvent()
Returns the drag event.

Returns:
the drag event

getDragSource

public DragSource getDragSource()
Returns the drag source.

Returns:
the drag source.

getDropTarget

public DropTarget getDropTarget()
Returns the drop target.

Returns:
the drop target

getOperation

public DND.Operation getOperation()
Returns the operation.

Returns:
the operation

getStatus

public StatusProxy getStatus()
Returns the status proxy.

Returns:
the proxy

setComponent

public void setComponent(Component component)
Sets the source component

Parameters:
component - the source component

setData

public void setData(java.lang.Object data)
Sets the drag and drop data.

Parameters:
data - the data

setDragEvent

public void setDragEvent(DragEvent dragEvent)
Sets the drag event.

Parameters:
dragEvent - the drag event

setDragSource

public void setDragSource(DragSource dragSource)
Sets the drag source.

Parameters:
dragSource - the drag source

setDropTarget

public void setDropTarget(DropTarget dragTarget)
Sets the drop target.

Parameters:
dragTarget - the drop target

setOperation

public void setOperation(DND.Operation operation)
Sets the operation.

Parameters:
operation - the operation

setStatus

public void setStatus(StatusProxy status)
Sets the status proxy.

Parameters:
status - the status proxy