com.extjs.gxt.ui.client.dnd
Class GridDragSource

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseObservable
      extended by com.extjs.gxt.ui.client.dnd.DragSource
          extended by com.extjs.gxt.ui.client.dnd.GridDragSource
All Implemented Interfaces:
Observable

public class GridDragSource
extends DragSource

A DragSource implementation for Grids. Supports both single and multi-selections. The selected model instances will be set as the data to be dragged.


Constructor Summary
GridDragSource(Grid grid)
          Creates a new grid drag source instance.
 
Method Summary
 Grid<ModelData> getGrid()
          Returns the sources grid component.
 
Methods inherited from class com.extjs.gxt.ui.client.dnd.DragSource
addDNDListener, disable, enable, getComponent, getData, getDraggable, getGroup, getStatusText, isEnabled, removeDNDListener, setData, setGroup, setStatusText
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable
addListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridDragSource

public GridDragSource(Grid grid)
Creates a new grid drag source instance.

Parameters:
grid - the grid
Method Detail

getGrid

public Grid<ModelData> getGrid()
Returns the sources grid component.

Returns:
the grid