0

AbstractTreeModel addOpenPath

asked 2014-03-21 11:51:40 +0800

mikrobe gravatar image mikrobe
9 1 3

After striving a lot to figure out why I was not able to programmatically open a path in a treemodel I found out that the parent nodes are not opened automatically. Is that the right behaviour?

For example if I require to open a path [2,2,4] and the parents [2] and [2,2] are closed, wouldn't it be better to open them?

So in my AbstractTreeModel implementation I added an addOpenFullPath(int[] path) method that creates the subpaths [2],[2,2],[2,2,4] and calls super.addOpenPaths(int[][] path).

But in my opinion that should be the expected behaviour of addOpenPath().

What do you think?

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-03-21 11:51:40 +0800

Seen: 5 times

Last updated: Mar 21 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More