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

java.lang.Object
  extended by com.extjs.gxt.ui.client.widget.tree.TreeStyle

public class TreeStyle
extends java.lang.Object

Style information for Trees. There are 2 types for tree items: nodes and leafs. Leafs are tree items without children. Nodes are items with children or items with their leaf flag set to false.


Constructor Summary
TreeStyle()
           
 
Method Summary
 java.lang.String getItemStyle()
          Returns the style name that is added to all items.
 java.lang.String getLeafIconStyle()
          Returns the icon style for leaf items.
 java.lang.String getNodeCloseIconStyle()
          Returns the global icon style for closed nodes.
 java.lang.String getNodeOpenIconStyle()
          Returns the global icon style for open nodes.
 void setItemStyle(java.lang.String itemStyle)
          The global icon style for tree items with children (defaults to 'tree-folder').
 void setLeafIconStyle(java.lang.String itemIconStyle)
          Sets the global icon style for leaf tree items.
 void setNodeCloseIconStyle(java.lang.String folderCloseIconStyle)
          Sets the icon style used for closed tree items.
 void setNodeOpenIconStyle(java.lang.String folderOpenIconStyle)
          Sets the global icon style for expanded tree items (defaults to 'tree-folder-open').
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeStyle

public TreeStyle()
Method Detail

getItemStyle

public java.lang.String getItemStyle()
Returns the style name that is added to all items.

Returns:
the style name

getLeafIconStyle

public java.lang.String getLeafIconStyle()
Returns the icon style for leaf items.

Returns:
the icon style

getNodeCloseIconStyle

public java.lang.String getNodeCloseIconStyle()
Returns the global icon style for closed nodes.

Returns:
the style name

getNodeOpenIconStyle

public java.lang.String getNodeOpenIconStyle()
Returns the global icon style for open nodes.

Returns:
the style name

setItemStyle

public void setItemStyle(java.lang.String itemStyle)
The global icon style for tree items with children (defaults to 'tree-folder'). Individual tree items can override this value by setting the the item's icon style.

Parameters:
itemStyle - the node icon style

setLeafIconStyle

public void setLeafIconStyle(java.lang.String itemIconStyle)
Sets the global icon style for leaf tree items. Individual tree items can override this value by setting the the item's icon style.

Parameters:
itemIconStyle - the image style

setNodeCloseIconStyle

public void setNodeCloseIconStyle(java.lang.String folderCloseIconStyle)
Sets the icon style used for closed tree items.

Parameters:
folderCloseIconStyle - the style name

setNodeOpenIconStyle

public void setNodeOpenIconStyle(java.lang.String folderOpenIconStyle)
Sets the global icon style for expanded tree items (defaults to 'tree-folder-open'). Individual tree items can override this value by setting the the item's icon style.

Parameters:
folderOpenIconStyle - the open node icon style