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 146257 - hide columns of OutlineView at start up
Summary: hide columns of OutlineView at start up
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-04 23:30 UTC by massimo
Modified: 2010-10-13 09:57 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description massimo 2008-09-04 23:30:06 UTC
Could not find an easy way to initialize columns as visible/not visible.

With TreeTableView you had to set property.setValue("InvisibleInTreeTableView", true), but that does not seem to work
with OutlineView.
Checked API for TreeTableColumnSelector, but was not able to make that work either: the default behavior opens up a very
useful panel ("Select Visible Columns") that allows the user to make columns visible with check boxes, but if you
override TreeTableColumnSelector, and then click to open the "Select Visible Columns", you no longer get that useful
panel: it applies visibility right away.

Ideally, i would like to have a bunch of columns available in an OutlineView, but only some of them visible at creation
time.
User can then always go click the box in the top right corner, which pops up the "Select Visible Columns" panel, and
then make whatever column visible.

Max
Comment 1 massimo 2008-09-05 01:11:10 UTC
Please disregard my comment about TreeTableColumnSelector in the description: it has not to do with this issue. About
hiding columns, wanted to specify that this can be done using ETableColumnModel, but somebody would wish to set values
as easily as it was with TreeTableView.
Comment 2 Stanislav Aubrecht 2008-09-05 09:03:55 UTC
outlineview is a new api still under development so i don't think this counts as a bug.
patches are welcome:)
Comment 3 massimo 2008-12-22 16:33:50 UTC
ok, will try look into that.
Comment 4 massimo 2008-12-22 16:35:24 UTC
ok, will try look into that.
Comment 5 Martin Entlicher 2010-10-13 09:57:15 UTC
See ETableColumnModel.setColumnHidden(TableColumn column, boolean hidden)