Bug 210327 - Outline no longer refreshes column data after TreeModel.nodeChanged(TreeNode)
Outline no longer refreshes column data after TreeModel.nodeChanged(TreeNode)
Status: NEW
Product: platform
Classification: Unclassified
Component: Outline&TreeTable
All All
: P3 with 1 vote (vote)
Assigned To: Martin Entlicher
Depends on:
  Show dependency treegraph
Reported: 2012-03-28 22:26 UTC by chaddaniels
Modified: 2014-06-13 17:21 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT

Patch (1.25 KB, patch)
2014-06-13 17:21 UTC, punx120
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description chaddaniels 2012-03-28 22:26:27 UTC
Previous to 7.0, a row in an Outline could be refreshed simply by calling the TreeModel's nodeChanged(TreeNode) method.  The new behavior for 7.0+ is that this method will only refresh the tree column data, and all other columns will remain with their old data. 

It has been suggested that this is an undesired outcome of Bug 185810.

Please see the discussion on the forums at:
Comment 1 punx120 2014-06-13 17:12:44 UTC
I believe I found the problem. In EventBroadcaster, when it creates TableEvent, the "changed" column is 0 in translateEvent and createTableChangeEvent, even though the good value TableModelEvent.ALL_COLUMNS is in the comment.

With that value changed, it works.
Comment 2 punx120 2014-06-13 17:21:05 UTC
Created attachment 147671 [details]

Here's the patch

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo