M
- the model typepublic class GridDragSource<M> extends DragSource
Grid
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 |
GridDragSource.DefaultGridDragSourceMessages |
static interface |
GridDragSource.GridDragSourceMessages
The locale-sensitive messages used by this class.
|
Modifier and Type | Field and Description |
---|---|
protected Grid<M> |
grid |
data, draggable, handler, statusProxy, widget
Constructor and Description |
---|
GridDragSource(Grid<M> grid)
Creates a drag source for the specified grid.
|
Modifier and Type | Method and Description |
---|---|
Grid<M> |
getGrid()
Returns the grid associated with this drag source.
|
GridDragSource.GridDragSourceMessages |
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(GridDragSource.GridDragSourceMessages 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
public Grid<M> getGrid()
public GridDragSource.GridDragSourceMessages getMessages()
public void setMessages(GridDragSource.GridDragSourceMessages 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.