<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6001.18444" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I try to custom the NodeUI of my
layerTreePanel...<BR>I have a subclass : </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>MyNs.LayerNodeUI =
Ext.extend(GeoExt.tree.LayerNodeUI</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>But i can't find the way to affect this UI to the
Node..<BR>The point is the line :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>this.defaultUI = this.defaultUI ||
GeoExt.tree.LayerNodeUI </FONT><FONT face=Arial size=2>in the constructor of
GeoExt.tree.TreeNode, </FONT></DIV>
<DIV><FONT face=Arial size=2><BR>i would like to have MyNs.LayerNodeUI in
this.defaultUI but couldn't fix the thing..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>this is how i instanciate my Tree : </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>this.root = new
GeoExt.tree.OverlayLayerContainer({<BR> layerStore:
this.mapPanel.layers,<BR> leaf: false,<BR> expanded:
true,<BR> cls: 'layerTree',<BR>});<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>i tried things like this :</FONT></DIV>
<DIV><FONT face=Arial size=2>default: {</FONT></DIV>
<DIV><FONT face=Arial size=2> uiProvider:
MyNs.TreeNode,</FONT></DIV>
<DIV><FONT face=Arial size=2> ui: MyNs.TreeNode,</FONT></DIV>
<DIV><FONT face=Arial size=2> defaultUI:
MyNs.TreeNode</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>but those arguments are'nt passed on the call of
createNode()</DIV></FONT>
<DIV><FONT face=Arial size=2>do you have any idea ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>thks</FONT><FONT face=Arial
size=2></DIV></FONT></BODY></HTML>