Bug 178613 - Allow to unset the tree column of OutlineView as sortable.
Allow to unset the tree column of OutlineView as sortable.
Product: platform
Classification: Unclassified
Component: Outline&TreeTable
PC Linux
: P2 (vote)
: 6.x
Assigned To: Martin Entlicher
Depends on:
Blocks: 178077
  Show dependency treegraph
Reported: 2009-12-14 09:51 UTC by Martin Entlicher
Modified: 2009-12-21 23:40 UTC (History)
0 users

See Also:

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
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.

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