Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tree Cell Renderer

 
Aabha Varma
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a tree with two levels.

Parent node contains the information, depending on which child nodes colour should change.

Is it possible that when i am rendering the parent (by checking the node level) can i render the child nodes...as i have the info.

Can anyone help me out.

Regards,
 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean exactly? Why do you want to render the children when rendering the parent?
 
Swati Udas
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per my understanding :-
The renderer will check for each tree node when the tree is to be displayed. Depanding on your code it will check the information for that node and display accordingly. SO the renderer will go to all leaf nodes as well as parent nodes.
U can write appropriate code by checking nodelevel and using node.getParent for checking the parent properties.

Setting the display properties for child nodes while displaying the parent doesnt make sense atleast as long as u r following the Renderer way.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic