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

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

public class TreeStyle
extends java.lang.Object

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


Constructor Summary
TreeStyle()
           
 
Method Summary
 com.google.gwt.user.client.ui.AbstractImagePrototype getJointCollapsedIcon()
           
 com.google.gwt.user.client.ui.AbstractImagePrototype getJointExpandedIcon()
           
 com.google.gwt.user.client.ui.AbstractImagePrototype getLeafIcon()
          Returns the icon style for leaf items.
 com.google.gwt.user.client.ui.AbstractImagePrototype getNodeCloseIcon()
          Returns the global icon style for closed nodes.
 com.google.gwt.user.client.ui.AbstractImagePrototype getNodeOpenIcon()
          Returns the global icon style for open nodes.
 void setJointCollapsedIcon(com.google.gwt.user.client.ui.AbstractImagePrototype jointCollapsedIcon)
           
 void setJointExpandedIcon(com.google.gwt.user.client.ui.AbstractImagePrototype jointExpandedIcon)
           
 void setLeafIcon(com.google.gwt.user.client.ui.AbstractImagePrototype itemIcon)
          Sets the global icon style for leaf tree items.
 void setNodeCloseIcon(com.google.gwt.user.client.ui.AbstractImagePrototype folderCloseIcon)
          Sets the icon style used for closed tree items.
 void setNodeOpenIcon(com.google.gwt.user.client.ui.AbstractImagePrototype folderOpenIcon)
          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

getJointExpandedIcon

public com.google.gwt.user.client.ui.AbstractImagePrototype getJointExpandedIcon()
Returns:
the jointExpandedIcon

getJointCollapsedIcon

public com.google.gwt.user.client.ui.AbstractImagePrototype getJointCollapsedIcon()
Returns:
the jointCollapsedIcon

getLeafIcon

public com.google.gwt.user.client.ui.AbstractImagePrototype getLeafIcon()
Returns the icon style for leaf items.

Returns:
the icon style

getNodeCloseIcon

public com.google.gwt.user.client.ui.AbstractImagePrototype getNodeCloseIcon()
Returns the global icon style for closed nodes.

Returns:
the style name

getNodeOpenIcon

public com.google.gwt.user.client.ui.AbstractImagePrototype getNodeOpenIcon()
Returns the global icon style for open nodes.

Returns:
the style name

setJointCollapsedIcon

public void setJointCollapsedIcon(com.google.gwt.user.client.ui.AbstractImagePrototype jointCollapsedIcon)
Parameters:
jointCollapsedIcon - the jointCollapsedIcon to set

setJointExpandedIcon

public void setJointExpandedIcon(com.google.gwt.user.client.ui.AbstractImagePrototype jointExpandedIcon)
Parameters:
jointExpandedIcon - the jointExpandedIcon to set

setLeafIcon

public void setLeafIcon(com.google.gwt.user.client.ui.AbstractImagePrototype itemIcon)
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:
itemIcon - the icon

setNodeCloseIcon

public void setNodeCloseIcon(com.google.gwt.user.client.ui.AbstractImagePrototype folderCloseIcon)
Sets the icon style used for closed tree items.

Parameters:
folderCloseIcon - the icon

setNodeOpenIcon

public void setNodeOpenIcon(com.google.gwt.user.client.ui.AbstractImagePrototype folderOpenIcon)
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:
folderOpenIcon - the open node icon