This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Frameworks » Flex
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Adding Background image to the root node of Flextree control
 
Similar Threads
Problem with label
CSS and JSP
How to set the icon for JSF Tree Node in the backing bean
Graphs and identifying adjacent nodes
tree not getting updated on Linux ??