Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Branch nodes editable  RSS feed

 
Cathy Song
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am implementing a class, where only the branch nodes (ie: everything other than a leaf node) is editable as a text field. I have the class set up such that nodes are editable, but even the leaf nodes are being edited. What do I do/catch to stop this behaviour? The leaf nodes are being rendered using a custom renderer.

Thanks,
-Cathy.
 
Cathy Song
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind I solved it. For anyone who might have the same problem,
in the isCellEditable() method, check to see if the node is leaf or not.

-- Cathy.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!