M
- the model typepublic class TreeGridDragSource<M> extends DragSource
TreeGrid
to act as the source of a drag and drop operation.
Use setTreeGridSource(com.sencha.gxt.dnd.core.client.DND.TreeSource)
to specify whether leaf nodes,
non-leaf nodes or both types of nodes can be dragged (defaults to
DND.TreeSource.BOTH
). The drag operation is cancelled if the user
attempts to drag a node type that is not permitted.
The drag data consists of a list of items of type <M>
. It is optimized to remove children of parents that are
also in the list (i.e. if a parent is the subject of a drag operation then all of its children are implicitly part of
the drag operation).Constructor and Description |
---|
TreeGridDragSource(TreeGrid<M> widget)
Creates a drag source for the specified tree grid.
|
Modifier and Type | Method and Description |
---|---|
DND.TreeSource |
getTreeGridSource()
Returns the tree grid associated with this drag source.
|
TreeGrid<M> |
getWidget()
Returns the source widget.
|
void |
setTreeGridSource(DND.TreeSource treeGridSource)
Sets the tree source (defaults to
DND.TreeSource.BOTH ). |
addDragCancelHandler, addDragStartHandler, addDropHandler, disable, enable, getData, getDraggable, getGroup, getStatusText, isEnabled, release, setData, setGroup, setStatusText
public DND.TreeSource getTreeGridSource()
public TreeGrid<M> getWidget()
DragSource
getWidget
in class DragSource
public void setTreeGridSource(DND.TreeSource treeGridSource)
DND.TreeSource.BOTH
).treeGridSource
- the tree sourceCopyright © 2015. All rights reserved.