Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need plus sign after collapsing selected node(which doesn't have child node)

 
Lakshmi Gurusamy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When I click on + sign on selected node, it will expand and will display child nodes. After expanding it shows - minus sign on selected node. When I click on - sign, it should collapse and should show + sign over there. It is working fine if selected node has child nodes and not working if selected node doesn't have child node.

My requirement is that when we collapse node which doesn't have child node then it should collapse and should show + sign over there.

Can anyone please help me on this.
 
m Korbel
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not clear from your question, search for JTreeTable or Accordition
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if it has no children it's a leaf.
you want the leaf to have a + sign.

so what is to happen when you click that + sign?
 
Lakshmi Gurusamy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your quick response.

Yes, its a leaf node and I want the leaf to have a + sign.

If I click it opens splitted screen, so I need plus sign there.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic