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

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.TreePanelDragSource
All Implemented Interfaces:
Observable

public class TreePanelDragSource
extends DragSource

DragSource implementation for TreePanel.


Constructor Summary
TreePanelDragSource(TreePanel tree)
           
 
Method Summary
 DND.TreeSource getTreeSource()
          Returns the type of items that can be dragged.
 boolean isTreeStoreState()
          Returns true if tree store state is enabled.
 void setTreeSource(DND.TreeSource treeSource)
          Sets which tree items can be dragged (defaults to BOTH).
 void setTreeStoreState(boolean treeStoreState)
          True to use TreeStore.getModelState(ModelData) when setting the drag data (defaults to true).
 
Methods inherited from class com.extjs.gxt.ui.client.dnd.DragSource
addDNDListener, disable, enable, getComponent, getData, getDraggable, getGroup, getStatusText, isEnabled, removeDNDListener, setData, setGroup, setStatusText
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable
addListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreePanelDragSource

public TreePanelDragSource(TreePanel tree)
Method Detail

getTreeSource

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

Returns:
the tree source type

isTreeStoreState

public boolean isTreeStoreState()
Returns true if tree store state is enabled.

Returns:
the tree store state

setTreeSource

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

Parameters:
treeSource - the tree source type

setTreeStoreState

public void setTreeStoreState(boolean treeStoreState)
True to use TreeStore.getModelState(ModelData) when setting the drag data (defaults to true). False to return a flat list of the selected models in the tree.

Parameters:
treeStoreState - true to use model state