com.sencha.gxt.dnd.core.client
Class ListViewDragSource<M>

java.lang.Object
  extended by com.sencha.gxt.dnd.core.client.DragSource
      extended by com.sencha.gxt.dnd.core.client.ListViewDragSource<M>
Type Parameters:
M - the model type
All Implemented Interfaces:
DndDragCancelEvent.HasDndDragCancelHandlers, DndDragStartEvent.HasDndDragStartHandlers, DndDropEvent.HasDndDropHandlers

public class ListViewDragSource<M>
extends DragSource

Enables a ListView to act as the source of a drag and drop operation.

The drag data consists of a list of items of type <M>.


Nested Class Summary
static interface ListViewDragSource.ListViewDragSourceMessages
          The locale-sensitive messages used by this class.
 
Constructor Summary
ListViewDragSource(ListView<M,?> listView)
          Creates a drag source for the specified list view.
 
Method Summary
 ListView<M,?> getListView()
          Returns the list view associated with this drag source.
 ListViewDragSource.ListViewDragSourceMessages getMessages()
          Returns the locale-sensitive messages used by this class.
 void setMessages(ListViewDragSource.ListViewDragSourceMessages messages)
          Sets the local-sensitive messages used by this class.
 
Methods inherited from class com.sencha.gxt.dnd.core.client.DragSource
addDragCancelHandler, addDragStartHandler, addDropHandler, disable, enable, getData, getDraggable, getGroup, getStatusText, getWidget, isEnabled, release, setData, setGroup, setStatusText
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListViewDragSource

public ListViewDragSource(ListView<M,?> listView)
Creates a drag source for the specified list view.

Parameters:
listView - the list view to enable as a drag source
Method Detail

getListView

public ListView<M,?> getListView()
Returns the list view associated with this drag source.

Returns:
the list view associated with this drag source

getMessages

public ListViewDragSource.ListViewDragSourceMessages getMessages()
Returns the locale-sensitive messages used by this class.

Returns:
the locale-sensitive messages used by this class

setMessages

public void setMessages(ListViewDragSource.ListViewDragSourceMessages messages)
Sets the local-sensitive messages used by this class.

Parameters:
messages - the locale sensitive messages used by this class.


Copyright © 2012. All Rights Reserved.