[Users] RadioButtonMixin and custom TreeNodeUI

Andreas Hocevar ahocevar at opengeo.org
Wed Jul 21 18:19:11 CEST 2010


On Jul 21, 2010, at 18:04 , Dan Ramage wrote:

> Is the RadioButtonMixin class currently being used in the latest release?
> I've been trying to understand how to create a tree node with a slider for
> opacity, so I've been looking at how the radio button was implemented. The
> example I originally followed simply added the radioGroup: 'foo' to the
> loader configuration when building the nodes. The only place I could find
> radioGroup referenced was the RadioButtonMixin, but I can't seem to find
> where/how RadioButtonMixin is instantiated.

Look at http://dev.geoext.org/trunk/geoext/examples/tree.html

There are two ways to have a radio button. RadioButtonMixin is only used if you want a radio button in addition to the checkbox. This is done with the custom LayerNodeUI in the above example. When using radioGroup, which is implemented in GeoExt.tree.LayerNodeUI, the ui is only modified to replace the checkbox with a radio button.

But if you want to know how to change the UI of layer nodes, digging into some of the patches found in http://trac.geoext.org/ticket/139 might help.

Regards,
Andreas.

> 
> 
> Thanks for any pointers,
> 
> 
> Dan
> 
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list