com.extjs.gxt.ui.client.widget.tree
Interface TreeItemUI

All Known Implementing Classes:
DefaultTreeItemUI, FastTreeItemUI, TreeTableItemUI

Deprecated. see TreePanel

public interface TreeItemUI

Interface for TreeItem UI providers.


Method Summary
 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.
 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.
 void handleEvent(TreeEvent e)
          Deprecated. Receives all tree item events.
 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.
 void onIconStyleChange(java.lang.String iconStyle)
          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.
 

Method Detail

afterRender

void afterRender()
Deprecated. 
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.


bind

void bind(TreeItem item)
Deprecated. 
Binds the UI instance to a tree item.

Parameters:
item - bound tree item

collapse

void collapse()
Deprecated. 
Collapses a nodes children.


expand

void expand()
Deprecated. 
Expands the nodes children.


getCheckElement

com.google.gwt.user.client.Element getCheckElement()
Deprecated. 
Returns the check element. The check element only applies when the tree item is checkable.

Returns:
the check element

getContainerElement

com.google.gwt.user.client.Element getContainerElement()
Deprecated. 
Returns the container element. The container element is the element that wraps all a nodes child items.

Returns:
the container element

getJointElement

com.google.gwt.user.client.Element getJointElement()
Deprecated. 
Returns the joint element. The joint is the element used to expand and collapse nodes.

Returns:
the joint element

getTemplate

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.

Parameters:
id - the item id
text - the item's text
Returns:
the html markup

handleEvent

void handleEvent(TreeEvent e)
Deprecated. 
Receives all tree item events.

Parameters:
e - the tree event

isSelectableTarget

boolean isSelectableTarget(com.google.gwt.user.client.Element target)
Deprecated. 
Returns whether the element is a selectable target.

Parameters:
target - the target element
Returns:
true if selectable

onCheckChange

void onCheckChange(boolean checked)
Deprecated. 
Called when the check state changes.

Parameters:
checked - true for checked, false otherwise.

onIconStyleChange

void onIconStyleChange(java.lang.String iconStyle)
Deprecated. 
Called when the nodes icon style changes.

Parameters:
iconStyle - the icon style

onIndentChange

void onIndentChange(int level)
Deprecated. 
Called when the nodes indentation changes.

Parameters:
level - the items depth

onJointChange

void onJointChange(Tree.Joint joint)
Deprecated. 
Called when the nodes joint is updated.

Parameters:
joint - the joint

onLoadingChange

void onLoadingChange(boolean loading)
Deprecated. 
Called when the node is "loading". Applies when children are loaded asynchronously.

Parameters:
loading - true for loading

onOverChange

void onOverChange(boolean over)
Deprecated. 
Called when the nodes hover style changes.

Parameters:
over - true for hover, otherwise false

onRemoveChild

void onRemoveChild(TreeItem child)
Deprecated. 
Called when a nodes child is removed.

Parameters:
child - the child to be removed

onSelectedChange

void onSelectedChange(boolean selected)
Deprecated. 
Called when the selected state of a node changes.

Parameters:
selected - true if selected

onTextChange

void onTextChange(java.lang.String text)
Deprecated. 
Called when the nodes text changes.

Parameters:
text - the new text

onTextStyleChange

void onTextStyleChange(java.lang.String style)
Deprecated. 
Called when the nodes text style changes.

Parameters:
style - the style name

refresh

void refresh()
Deprecated. 
Refreshes the UI.