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 247556 - No-icon mode for OutlineView/TreeTableView
Summary: No-icon mode for OutlineView/TreeTableView
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2014-09-29 12:52 UTC by Jan Stola
Modified: 2014-10-29 11:41 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
The proposed API change (6.94 KB, patch)
2014-10-13 13:26 UTC, Martin Entlicher
Details | Diff
The associated non-API change in DefaultOutlineCellRenderer (2.08 KB, patch)
2014-10-13 13:29 UTC, Martin Entlicher
Details | Diff
Usage of the new API by KnockoutPanel and CSSStylesSelectionPanel (5.70 KB, patch)
2014-10-13 13:30 UTC, Martin Entlicher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Stola 2014-09-29 12:52:36 UTC
It would be nice to be able to tell OutlineView/TreeTableView not to render icons for nodes. There are situations where the icon doesn't provide any additional value and just distracts the user/consumes the screen estate.

For example, the CSS Styles view is using TreeTableView without icons and Knockout view is using OutlineView without icons. These views have to use some hacks not to paint the icons. It would be great to have some API for this instead.
Comment 1 Martin Entlicher 2014-10-13 13:26:25 UTC
Created attachment 149868 [details]
The proposed API change
Comment 2 Martin Entlicher 2014-10-13 13:27:55 UTC
Please review the proposed API change introducing the ability not to show node icons in OutlineView and TreeView and it's descendants.
Comment 3 Martin Entlicher 2014-10-13 13:29:18 UTC
Created attachment 149869 [details]
The associated non-API change in DefaultOutlineCellRenderer
Comment 4 Martin Entlicher 2014-10-13 13:30:45 UTC
Created attachment 149870 [details]
Usage of the new API by KnockoutPanel and CSSStylesSelectionPanel
Comment 5 Martin Entlicher 2014-10-17 17:54:22 UTC
Thanks for the review. If there are no objections, I'll push the change on Monday.
Comment 6 Martin Entlicher 2014-10-20 12:56:51 UTC
The API change and it's usage by knockout is pushed:
http://hg.netbeans.org/core-main/rev/3eeef3ec5881
http://hg.netbeans.org/core-main/rev/533366e1c589
Comment 7 Quality Engineering 2014-10-29 11:41:54 UTC
Integrated into 'main-silver', will be available in build *201410290913* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3eeef3ec5881
User: mentlicher@netbeans.org
Log: #247556: It is possible not to show icons in OutlineView and TreeView.