com.extjs.gxt.ui.client.event
Class TreePanelEvent<M extends ModelData>

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseEvent
      extended by com.extjs.gxt.ui.client.event.DomEvent
          extended by com.extjs.gxt.ui.client.event.ComponentEvent
              extended by com.extjs.gxt.ui.client.event.BoxComponentEvent
                  extended by com.extjs.gxt.ui.client.event.TreePanelEvent<M>
Type Parameters:
M - the model type contained in the tree

public class TreePanelEvent<M extends ModelData>
extends BoxComponentEvent

TreePanel event type.


Field Summary
 
Fields inherited from class com.extjs.gxt.ui.client.event.DomEvent
event
 
Constructor Summary
TreePanelEvent(TreePanel tree)
           
TreePanelEvent(TreePanel tree, com.google.gwt.user.client.Event event)
           
TreePanelEvent(TreePanel tree, M item)
           
 
Method Summary
 M getChild()
          Returns the child model.
 M getItem()
          Returns the item.
 TreePanel.TreeNode getNode()
          Returns the tree node.
 M getParent()
          Returns the parent.
 TreeStore getStore()
          Returns the source tree store.
 TreePanel<M> getTreePanel()
          Returns the source tree panel.
 boolean isChecked()
          Returns true if checked.
 void setChecked(boolean checked)
          Sets the checked state.
 void setChild(M child)
          Sets the child.
 void setItem(M item)
          Sets the item.
 void setNode(TreePanel.TreeNode node)
          Sets the tree node.
 void setParent(M parent)
          Sets the parent.
 void setStore(TreeStore store)
          Sets the source tree store.
 void setTreePanel(TreePanel<M> treePanel)
          Sets the source tree panel.
 
Methods inherited from class com.extjs.gxt.ui.client.event.BoxComponentEvent
getBoxComponent, getHeight, getSize, getWidth, getX, getY, setBoxComponent, setHeight, setSize, setWidth, setX, setY
 
Methods inherited from class com.extjs.gxt.ui.client.event.ComponentEvent
getComponent, getState, setComponent, setState
 
Methods inherited from class com.extjs.gxt.ui.client.event.DomEvent
cancelBubble, getClientX, getClientY, getEvent, getEventTypeInt, getKeyCode, getTarget, getTarget, getTargetEl, getXY, hasModifier, isAltKey, isControlKey, isNavKeyPress, isNavKeyPress, isRightClick, isShiftKey, isSpecialKey, isSpecialKey, preventDefault, setEvent, stopEvent, within, within
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseEvent
getSource, getType, isCancelled, setCancelled, setSource, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreePanelEvent

public TreePanelEvent(TreePanel tree)

TreePanelEvent

public TreePanelEvent(TreePanel tree,
                      com.google.gwt.user.client.Event event)

TreePanelEvent

public TreePanelEvent(TreePanel tree,
                      M item)
Method Detail

getChild

public M getChild()
Returns the child model.

Returns:
the child

getItem

public M getItem()
Returns the item.

Returns:
the item

getNode

public TreePanel.TreeNode getNode()
Returns the tree node.

Returns:
the tree node

getParent

public M getParent()
Returns the parent.

Returns:
the parent

getStore

public TreeStore getStore()
Returns the source tree store.

Returns:
the tree store

getTreePanel

public TreePanel<M> getTreePanel()
Returns the source tree panel.

Returns:
the source tree panel

isChecked

public boolean isChecked()
Returns true if checked.

Returns:
true if checked

setChecked

public void setChecked(boolean checked)
Sets the checked state.

Parameters:
checked - the checked state

setChild

public void setChild(M child)
Sets the child.

Parameters:
child - the child

setItem

public void setItem(M item)
Sets the item.

Parameters:
item - the item

setNode

public void setNode(TreePanel.TreeNode node)
Sets the tree node.

Parameters:
node - the tree node

setParent

public void setParent(M parent)
Sets the parent.

Parameters:
parent - the parent

setStore

public void setStore(TreeStore store)
Sets the source tree store.

Parameters:
store - the tree store

setTreePanel

public void setTreePanel(TreePanel<M> treePanel)
Sets the source tree panel.

Parameters:
treePanel - the tree panel