com.extjs.gxt.ui.client.dnd
Class TreeDragSource

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseObservable
      extended by com.extjs.gxt.ui.client.dnd.DragSource
          extended by com.extjs.gxt.ui.client.dnd.TreeDragSource
All Implemented Interfaces:
Observable

Deprecated. TreePanelDragSource

public class TreeDragSource
extends DragSource

A DragSource implementation for Trees.


Field Summary
protected  TreeBinder<ModelData> binder
          Deprecated.  
protected  Tree tree
          Deprecated.  
protected  DND.TreeSource treeSource
          Deprecated.  
 
Fields inherited from class com.extjs.gxt.ui.client.dnd.DragSource
component, data, draggable, listener, statusProxy
 
Constructor Summary
TreeDragSource(Tree tree)
          Deprecated. Creates a new drag source instance.
TreeDragSource(TreeBinder<ModelData> binder)
          Deprecated. Creates a new drag source instance.
 
Method Summary
 DND.TreeSource getTreeSource()
          Deprecated. Returns the type if items that can be dragged.
protected  void onDragDrop(DNDEvent event)
          Deprecated.  
protected  void onDragStart(DNDEvent e)
          Deprecated. Called when a drag operation begins on the target component.
 void setTreeSource(DND.TreeSource treeSource)
          Deprecated. Sets witch tree items can be dragged (defaults to BOTH).
 
Methods inherited from class com.extjs.gxt.ui.client.dnd.DragSource
addDNDListener, disable, enable, getComponent, getData, getDraggable, getGroup, getStatusText, isEnabled, onDragCancelled, onDragFail, release, removeDNDListener, setData, setGroup, setStatusText
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tree

protected Tree tree
Deprecated. 

treeSource

protected DND.TreeSource treeSource
Deprecated. 

binder

protected TreeBinder<ModelData> binder
Deprecated. 
Constructor Detail

TreeDragSource

public TreeDragSource(Tree tree)
Deprecated. 
Creates a new drag source instance. The default code will set the selected TreeItems as the data being dragged.

Parameters:
tree - the source tree

TreeDragSource

public TreeDragSource(TreeBinder<ModelData> binder)
Deprecated. 
Creates a new drag source instance. The default code will set a list of TreeModels as the data being dragged. Each TreeModel instance is retrieved from the TreeStore.getModelState(ModelData).

Parameters:
binder - the tree binder
Method Detail

getTreeSource

public DND.TreeSource getTreeSource()
Deprecated. 
Returns the type if items that can be dragged.

Returns:
the tree source type

setTreeSource

public void setTreeSource(DND.TreeSource treeSource)
Deprecated. 
Sets witch tree items can be dragged (defaults to BOTH).

Parameters:
treeSource - the tree source type

onDragDrop

protected void onDragDrop(DNDEvent event)
Deprecated. 
Overrides:
onDragDrop in class DragSource

onDragStart

protected void onDragStart(DNDEvent e)
Deprecated. 
Description copied from class: DragSource
Called when a drag operation begins on the target component. Subclasses or any listeners can cancel the action by calling BaseEvent.setCancelled(boolean).

Overrides:
onDragStart in class DragSource
Parameters:
e - the dnd event