M
- the model typepublic class ListViewDragSource<M> extends DragSource
ListView
to act as the source of a drag and drop operation.
The drag data consists of a list of items of type <M>
.Modifier and Type | Class and Description |
---|---|
protected class |
ListViewDragSource.DefaultListViewDragSourceMessages |
static interface |
ListViewDragSource.ListViewDragSourceMessages
The locale-sensitive messages used by this class.
|
Modifier and Type | Field and Description |
---|---|
protected ListView<M,?> |
listView |
protected ListViewDragSource.ListViewDragSourceMessages |
messages |
data, draggable, handler, statusProxy, widget
Constructor and Description |
---|
ListViewDragSource(ListView<M,?> listView)
Creates a drag source for the specified list view.
|
Modifier and Type | Method and Description |
---|---|
ListView<M,?> |
getListView()
Returns the list view associated with this drag source.
|
ListViewDragSource.ListViewDragSourceMessages |
getMessages()
Returns the locale-sensitive messages used by this class.
|
protected void |
onDragDrop(DndDropEvent event) |
protected void |
onDragStart(DndDragStartEvent event)
Called when a drag operation begins on the target widget.
|
void |
setMessages(ListViewDragSource.ListViewDragSourceMessages messages)
Sets the local-sensitive messages used by this class.
|
addDragCancelHandler, addDragStartHandler, addDropHandler, disable, enable, getData, getDraggable, getGroup, getStatusText, getWidget, isEnabled, onDragCancelled, onDragFail, release, setData, setGroup, setStatusText
protected ListViewDragSource.ListViewDragSourceMessages messages
public ListView<M,?> getListView()
public ListViewDragSource.ListViewDragSourceMessages getMessages()
public void setMessages(ListViewDragSource.ListViewDragSourceMessages messages)
messages
- the locale sensitive messages used by this class.protected void onDragDrop(DndDropEvent event)
onDragDrop
in class DragSource
protected void onDragStart(DndDragStartEvent event)
DragSource
CancellableEvent.setCancelled(boolean)
.onDragStart
in class DragSource
event
- the dnd eventCopyright © 2018. All rights reserved.