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

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

public class TreePanelDropTarget
extends DropTarget


Constructor Summary
TreePanelDropTarget(TreePanel tree)
           
 
Method Summary
 TreePanel<?> getTree()
          Returns the target's tree.
 boolean isAllowDropOnLeaf()
          Returns whether drops are allowed on leaf nodes.
 boolean isAutoExpand()
          Returns true if auto expand is enabled.
 void setAllowDropOnLeaf(boolean allowDropOnLeaf)
          True to allow drops on leaf nodes (defaults to false).
 void setAutoExpand(boolean autoExpand)
          True to automatically expand the active tree item when the user hovers over a collapsed item (defaults to true).
 void setAutoExpandDelay(int autoExpandDelay)
          Sets the delay used to auto expand items (defaults to 800).
 
Methods inherited from class com.extjs.gxt.ui.client.dnd.DropTarget
addDNDListener, disable, enable, getComponent, getFeedback, getGroup, getOperation, getOverStyle, isAllowSelfAsSource, isEnabled, release, removeDNDListener, setAllowSelfAsSource, setFeedback, setGroup, setOperation, setOverStyle
 
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

TreePanelDropTarget

public TreePanelDropTarget(TreePanel tree)
Method Detail

getTree

public TreePanel<?> getTree()
Returns the target's tree.

Returns:
the tree

isAllowDropOnLeaf

public boolean isAllowDropOnLeaf()
Returns whether drops are allowed on leaf nodes.

Returns:
true of drops on leafs are allowed

isAutoExpand

public boolean isAutoExpand()
Returns true if auto expand is enabled.

Returns:
the auto expand state

setAllowDropOnLeaf

public void setAllowDropOnLeaf(boolean allowDropOnLeaf)
True to allow drops on leaf nodes (defaults to false).

Parameters:
allowDropOnLeaf - true to enable drops on leaf nodes

setAutoExpand

public void setAutoExpand(boolean autoExpand)
True to automatically expand the active tree item when the user hovers over a collapsed item (defaults to true). Use setAutoExpandDelay(int) to set the delay.

Parameters:
autoExpand - true to auto expand

setAutoExpandDelay

public void setAutoExpandDelay(int autoExpandDelay)
Sets the delay used to auto expand items (defaults to 800).

Parameters:
autoExpandDelay - the delay in milliseconds