This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 178613 - Allow to unset the tree column of OutlineView as sortable.
Summary: Allow to unset the tree column of OutlineView as sortable.
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks: 178077
  Show dependency tree
 
Reported: 2009-12-14 09:51 UTC by Martin Entlicher
Modified: 2009-12-21 23:40 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
The API change. (5.10 KB, patch)
2009-12-14 09:59 UTC, Martin Entlicher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2009-12-14 09:51:09 UTC
OutlineView have it's own private implementation of OutlineColumn therefore it's not possible to override isSortingAllowed(). The implementation takes the SortableColumn property from Node.Property of the column, but there's no Node.Property for the tree column. Therefore there's no way to change the sortability of the tree column.
Comment 1 Martin Entlicher 2009-12-14 09:59:32 UTC
Created attachment 92550 [details]
The API change.
Comment 2 Martin Entlicher 2009-12-14 10:02:19 UTC
Please review this simple API change.
I've rewritten OutlineViewOutlineColumn.isSortingAllowed() and added OutlineView.setTreeSortable() to allow to change the sortability of the tree column.
Comment 3 Martin Entlicher 2009-12-21 07:41:55 UTC
Thanks for the API review.
Fixed in changeset:   156091:95cceacc743a
http://hg.netbeans.org/main/rev/95cceacc743a
Comment 4 Quality Engineering 2009-12-21 23:40:18 UTC
Integrated into 'main-golden', will be available in build *200912220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/95cceacc743a
User: mentlicher@netbeans.org
Log: #178613 - Allow to set the tree column as not sortable.