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

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.ListViewDragSource
All Implemented Interfaces:
Observable

public class ListViewDragSource
extends DragSource

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


Constructor Summary
ListViewDragSource(ListView listView)
          Creates a new list view drag source instance.
 
Method Summary
 ListView<ModelData> getListView()
          Returns the sources list view.
 
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

ListViewDragSource

public ListViewDragSource(ListView listView)
Creates a new list view drag source instance.

Parameters:
listView - the source list view
Method Detail

getListView

public ListView<ModelData> getListView()
Returns the sources list view.

Returns:
the list view