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

Summary: Allow to unset the tree column of OutlineView as sortable.
Product: platform Reporter: Martin Entlicher <mentlicher>
Component: Outline&TreeTableAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal Keywords: API, API_REVIEW_FAST
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 178077    
Attachments: The API change.

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.