wood burning stoves 2.0*
The moose likes Flex and the fly likes Adding Background image to the root node of Flextree control Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Adding Background image to the root node of Flextree control" Watch "Adding Background image to the root node of Flextree control" New topic
Author

Adding Background image to the root node of Flextree control

sundaresan ganapathy
Greenhorn

Joined: Oct 08, 2008
Posts: 23
Hi All,
I am working with Flex Tree control, I have a requirement of adding background image for the root nodes. Right now i am using the css property, depthColors: #e2e2e2, #000000, #ffffff, #ffffff; but it is not enough.Also i tried adding the image as the child using createchildren() method, but the image is replacing the root node text, efforts that i put went as vain. Kindly help me out in adding image as the BackGround for the root nodes.

Thanks,
Sundar

Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Do you not just need to define an itemRenderer component? Thats how most rendering of rrepeated controls is done in Flex.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
sundaresan ganapathy
Greenhorn

Joined: Oct 08, 2008
Posts: 23
I tried adding the BGImage from within the extended TreeItemRenderer,but the image replaces the root node text...

-Sundar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding Background image to the root node of Flextree control
 
Similar Threads
Graphs and identifying adjacent nodes
CSS and JSP
Problem with label
How to set the icon for JSF Tree Node in the backing bean
tree not getting updated on Linux ??