com.extjs.gxt.ui.client.widget.tree
Class DefaultTreeItemUI

java.lang.Object
  extended by com.extjs.gxt.ui.client.widget.tree.DefaultTreeItemUI
All Implemented Interfaces:
TreeItemUI
Direct Known Subclasses:
FastTreeItemUI, TreeTableItemUI

Deprecated. see TreePanel

public class DefaultTreeItemUI
extends java.lang.Object
implements TreeItemUI

Default TreeItemUI implementation.


Field Summary
protected  int animDuration
          Deprecated.  
protected  com.google.gwt.user.client.Element checkDivEl
          Deprecated.  
protected  com.google.gwt.user.client.Element checkEl
          Deprecated.  
protected  java.lang.String classTreeClose
          Deprecated.  
protected  java.lang.String classTreeOpen
          Deprecated.  
protected  El containerEl
          Deprecated.  
protected  com.google.gwt.user.client.Element iconDivEl
          Deprecated.  
protected  com.google.gwt.user.client.Element iconEl
          Deprecated.  
protected  com.google.gwt.user.client.Element indentEl
          Deprecated.  
protected  TreeItem item
          Deprecated.  
protected  com.google.gwt.user.client.Element itemEl
          Deprecated.  
protected  com.google.gwt.user.client.Element jointDivEl
          Deprecated.  
protected  com.google.gwt.user.client.Element jointEl
          Deprecated.  
protected  java.lang.String styleTreeChecked
          Deprecated.  
protected  java.lang.String styleTreeItem
          Deprecated.  
protected  java.lang.String styleTreeJointOver
          Deprecated.  
protected  java.lang.String styleTreeLoading
          Deprecated.  
protected  java.lang.String styleTreeNotChecked
          Deprecated.  
protected  java.lang.String styleTreeOver
          Deprecated.  
protected  java.lang.String styleTreeSelected
          Deprecated.  
protected  com.google.gwt.user.client.Element textEl
          Deprecated.  
protected  com.google.gwt.user.client.Element textSpanEl
          Deprecated.  
protected  java.lang.String textStyle
          Deprecated.  
 
Constructor Summary
DefaultTreeItemUI()
          Deprecated.  
 
Method Summary
protected  void afterCollapse()
          Deprecated.  
protected  void afterExpand()
          Deprecated.  
 void afterRender()
          Deprecated. Called after the nodes UI has been rendered.
 void bind(TreeItem item)
          Deprecated. Binds the UI instance to a tree item.
 void collapse()
          Deprecated. Collapses a nodes children.
 void expand()
          Deprecated. Expands the nodes children.
protected  El fly(com.google.gwt.user.client.Element elem)
          Deprecated.  
 com.google.gwt.user.client.Element getCheckElement()
          Deprecated. Returns the check element.
 com.google.gwt.user.client.Element getContainerElement()
          Deprecated. Returns the container element.
 com.google.gwt.user.client.Element getJointElement()
          Deprecated. Returns the joint element.
 java.lang.String getTemplate(java.lang.String id, java.lang.String text, java.lang.String icon, int joint, int level)
          Deprecated. Returns the html markup used to render a tree item.
protected  void handleClickEvent(TreeEvent te)
          Deprecated.  
 void handleEvent(TreeEvent te)
          Deprecated. Receives all tree item events.
protected  void handleJointEvent(TreeEvent ce)
          Deprecated.  
protected  void handleMouseEvent(TreeEvent ce)
          Deprecated.  
 boolean isSelectableTarget(com.google.gwt.user.client.Element target)
          Deprecated. Returns whether the element is a selectable target.
 void onCheckChange(boolean checked)
          Deprecated. Called when the check state changes.
protected  void onClick(TreeEvent te)
          Deprecated.  
 void onDoubleClick(ComponentEvent ce)
          Deprecated.  
 void onIconStyleChange(java.lang.String style)
          Deprecated. Called when the nodes icon style changes.
 void onIndentChange(int level)
          Deprecated. Called when the nodes indentation changes.
 void onJointChange(Tree.Joint joint)
          Deprecated. Called when the nodes joint is updated.
 void onLoadingChange(boolean loading)
          Deprecated. Called when the node is "loading".
 void onOverChange(boolean over)
          Deprecated. Called when the nodes hover style changes.
 void onRemoveChild(TreeItem child)
          Deprecated. Called when a nodes child is removed.
 void onSelectedChange(boolean selected)
          Deprecated. Called when the selected state of a node changes.
 void onTextChange(java.lang.String text)
          Deprecated. Called when the nodes text changes.
 void onTextStyleChange(java.lang.String style)
          Deprecated. Called when the nodes text style changes.
 void refresh()
          Deprecated. Refreshes the UI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

animDuration

protected int animDuration
Deprecated. 

checkEl

protected com.google.gwt.user.client.Element checkEl
Deprecated. 

checkDivEl

protected com.google.gwt.user.client.Element checkDivEl
Deprecated. 

classTreeClose

protected java.lang.String classTreeClose
Deprecated. 

classTreeOpen

protected java.lang.String classTreeOpen
Deprecated. 

containerEl

protected El containerEl
Deprecated. 

iconEl

protected com.google.gwt.user.client.Element iconEl
Deprecated. 

iconDivEl

protected com.google.gwt.user.client.Element iconDivEl
Deprecated. 

itemEl

protected com.google.gwt.user.client.Element itemEl
Deprecated. 

indentEl

protected com.google.gwt.user.client.Element indentEl
Deprecated. 

item

protected TreeItem item
Deprecated. 

jointEl

protected com.google.gwt.user.client.Element jointEl
Deprecated. 

jointDivEl

protected com.google.gwt.user.client.Element jointDivEl
Deprecated. 

styleTreeChecked

protected java.lang.String styleTreeChecked
Deprecated. 

styleTreeItem

protected java.lang.String styleTreeItem
Deprecated. 

styleTreeJointOver

protected java.lang.String styleTreeJointOver
Deprecated. 

styleTreeLoading

protected java.lang.String styleTreeLoading
Deprecated. 

styleTreeNotChecked

protected java.lang.String styleTreeNotChecked
Deprecated. 

styleTreeOver

protected java.lang.String styleTreeOver
Deprecated. 

styleTreeSelected

protected java.lang.String styleTreeSelected
Deprecated. 

textEl

protected com.google.gwt.user.client.Element textEl
Deprecated. 

textSpanEl

protected com.google.gwt.user.client.Element textSpanEl
Deprecated. 

textStyle

protected java.lang.String textStyle
Deprecated. 
Constructor Detail

DefaultTreeItemUI

public DefaultTreeItemUI()
Deprecated. 
Method Detail

afterRender

public void afterRender()
Deprecated. 
Description copied from interface: TreeItemUI
Called after the nodes UI has been rendered. At this time, the tree item's element has been set, and any element initialization should occur.

Specified by:
afterRender in interface TreeItemUI

bind

public void bind(TreeItem item)
Deprecated. 
Description copied from interface: TreeItemUI
Binds the UI instance to a tree item.

Specified by:
bind in interface TreeItemUI
Parameters:
item - bound tree item

collapse

public void collapse()
Deprecated. 
Description copied from interface: TreeItemUI
Collapses a nodes children.

Specified by:
collapse in interface TreeItemUI

expand

public void expand()
Deprecated. 
Description copied from interface: TreeItemUI
Expands the nodes children.

Specified by:
expand in interface TreeItemUI

getCheckElement

public com.google.gwt.user.client.Element getCheckElement()
Deprecated. 
Description copied from interface: TreeItemUI
Returns the check element. The check element only applies when the tree item is checkable.

Specified by:
getCheckElement in interface TreeItemUI
Returns:
the check element

getContainerElement

public com.google.gwt.user.client.Element getContainerElement()
Deprecated. 
Description copied from interface: TreeItemUI
Returns the container element. The container element is the element that wraps all a nodes child items.

Specified by:
getContainerElement in interface TreeItemUI
Returns:
the container element

getJointElement

public com.google.gwt.user.client.Element getJointElement()
Deprecated. 
Description copied from interface: TreeItemUI
Returns the joint element. The joint is the element used to expand and collapse nodes.

Specified by:
getJointElement in interface TreeItemUI
Returns:
the joint element

getTemplate

public java.lang.String getTemplate(java.lang.String id,
                                    java.lang.String text,
                                    java.lang.String icon,
                                    int joint,
                                    int level)
Deprecated. 
Description copied from interface: TreeItemUI
Returns the html markup used to render a tree item.

Specified by:
getTemplate in interface TreeItemUI
Parameters:
id - the item id
text - the item's text
Returns:
the html markup

handleEvent

public void handleEvent(TreeEvent te)
Deprecated. 
Description copied from interface: TreeItemUI
Receives all tree item events.

Specified by:
handleEvent in interface TreeItemUI
Parameters:
te - the tree event

isSelectableTarget

public boolean isSelectableTarget(com.google.gwt.user.client.Element target)
Deprecated. 
Description copied from interface: TreeItemUI
Returns whether the element is a selectable target.

Specified by:
isSelectableTarget in interface TreeItemUI
Parameters:
target - the target element
Returns:
true if selectable

onCheckChange

public void onCheckChange(boolean checked)
Deprecated. 
Description copied from interface: TreeItemUI
Called when the check state changes.

Specified by:
onCheckChange in interface TreeItemUI
Parameters:
checked - true for checked, false otherwise.

onDoubleClick

public void onDoubleClick(ComponentEvent ce)
Deprecated. 

onIconStyleChange

public void onIconStyleChange(java.lang.String style)
Deprecated. 
Description copied from interface: TreeItemUI
Called when the nodes icon style changes.

Specified by:
onIconStyleChange in interface TreeItemUI
Parameters:
style - the icon style

onIndentChange

public void onIndentChange(int level)
Deprecated. 
Description copied from interface: TreeItemUI
Called when the nodes indentation changes.

Specified by:
onIndentChange in interface TreeItemUI
Parameters:
level - the items depth

onJointChange

public void onJointChange(Tree.Joint joint)
Deprecated. 
Description copied from interface: TreeItemUI
Called when the nodes joint is updated.

Specified by:
onJointChange in interface TreeItemUI
Parameters:
joint - the joint

onLoadingChange

public void onLoadingChange(boolean loading)
Deprecated. 
Description copied from interface: TreeItemUI
Called when the node is "loading". Applies when children are loaded asynchronously.

Specified by:
onLoadingChange in interface TreeItemUI
Parameters:
loading - true for loading

onOverChange

public void onOverChange(boolean over)
Deprecated. 
Description copied from interface: TreeItemUI
Called when the nodes hover style changes.

Specified by:
onOverChange in interface TreeItemUI
Parameters:
over - true for hover, otherwise false

onRemoveChild

public void onRemoveChild(TreeItem child)
Deprecated. 
Description copied from interface: TreeItemUI
Called when a nodes child is removed.

Specified by:
onRemoveChild in interface TreeItemUI
Parameters:
child - the child to be removed

onSelectedChange

public void onSelectedChange(boolean selected)
Deprecated. 
Description copied from interface: TreeItemUI
Called when the selected state of a node changes.

Specified by:
onSelectedChange in interface TreeItemUI
Parameters:
selected - true if selected

onTextChange

public void onTextChange(java.lang.String text)
Deprecated. 
Description copied from interface: TreeItemUI
Called when the nodes text changes.

Specified by:
onTextChange in interface TreeItemUI
Parameters:
text - the new text

onTextStyleChange

public void onTextStyleChange(java.lang.String style)
Deprecated. 
Description copied from interface: TreeItemUI
Called when the nodes text style changes.

Specified by:
onTextStyleChange in interface TreeItemUI
Parameters:
style - the style name

refresh

public void refresh()
Deprecated. 
Description copied from interface: TreeItemUI
Refreshes the UI.

Specified by:
refresh in interface TreeItemUI

afterCollapse

protected void afterCollapse()
Deprecated. 

afterExpand

protected void afterExpand()
Deprecated. 

fly

protected El fly(com.google.gwt.user.client.Element elem)
Deprecated. 

handleClickEvent

protected void handleClickEvent(TreeEvent te)
Deprecated. 

handleJointEvent

protected void handleJointEvent(TreeEvent ce)
Deprecated. 

handleMouseEvent

protected void handleMouseEvent(TreeEvent ce)
Deprecated. 

onClick

protected void onClick(TreeEvent te)
Deprecated.