|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.dnd.core.client.DragSource
com.sencha.gxt.dnd.core.client.TreeDragSource<M>
M - the model typepublic class TreeDragSource<M>
Enables a Tree to act as the source of a drag and drop operation.
#setTreeSource(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 Summary | |
|---|---|
TreeDragSource(Tree<M,?> tree)
Creates a drag source for the specified tree. |
|
| Method Summary | |
|---|---|
DND.TreeSource |
getTreeSource()
Returns the tree associated with this drag source. |
Tree<M,?> |
getWidget()
Returns the source widget. |
void |
setTreeSource(DND.TreeSource treeSource)
Sets the tree source (defaults to DND.TreeSource.BOTH). |
| Methods inherited from class com.sencha.gxt.dnd.core.client.DragSource |
|---|
addDragCancelHandler, addDragStartHandler, addDropHandler, disable, enable, getData, getDraggable, getGroup, getStatusText, isEnabled, release, setData, setGroup, setStatusText |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeDragSource(Tree<M,?> tree)
tree - the tree to enable as a drag source| Method Detail |
|---|
public DND.TreeSource getTreeSource()
public Tree<M,?> getWidget()
DragSource
getWidget in class DragSourcepublic void setTreeSource(DND.TreeSource treeSource)
DND.TreeSource.BOTH).
treeSource - the tree source
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||