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 154359 - TableView: interface and behavior
Summary: TableView: interface and behavior
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker with 4 votes (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-02 14:18 UTC by puce
Modified: 2010-04-12 14:31 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description puce 2008-12-02 14:18:09 UTC
It's very usefull to have a table view (since OutlineView does not allow to hide the first column)
But the interface and behavior of TableView should be similar as in other views. Eg.:
- the TableView should have a setProperties method

On the dev@openide.netbeans.org mailing list users reported problems, eg.:
1) Items from the table can't be dragged (yes, I did setDragSource(true) and called setAllowedDragActions)
2) On doubleclick, it doesnt open subnodes as ListView or TreeTableView does
3) When I have two views, i.e. ContextTreeView and TableView using the same ExplorerManager, the TableView doesn't react
to the ContextTreeView's selection. ListView and others do. 

http://www.nabble.com/Problems-with-TableView---columns-in-OutlineView--td20672994.html
Comment 1 puce 2008-12-02 14:20:31 UTC
Sorry, wrong link:
http://forums.netbeans.org/post-15454.html
Comment 2 puce 2008-12-02 14:20:56 UTC
Sorry, wrong link:
http://forums.netbeans.org/post-15454.html
Comment 3 puce 2008-12-15 16:38:37 UTC
Also the selection is somehow strange:
- when selecting with the left mouse button, the selected cell does not have the foreground & background colors as the
other cells of the selected row(s).
- when selecting with the left mouse button, the selected cell does not provide a context menu as the other cells of the
selected
- when selecting with the right mouse button, context menu & coloring is correct, except if the cell, which was
previously selected with the left mouse button is reselected.
- strange coloring after the TableView regains the focus by selecting another cell of the selected row.
Comment 4 puce 2008-12-16 11:56:45 UTC
To the common explorer view interface belongs also a selectionMode property, I think.
Comment 5 puce 2009-11-02 10:13:17 UTC
The target milestone seems to be 6.8

What's the status?
Comment 6 qbeukes 2009-11-02 10:29:29 UTC
Returning a custom editor from the Property for a given column isn't handler the same with the CellEditor for the table 
model. For example, returning a JButton instance in the PropertyEditor and painting it (when supportsPainting returns 
true), selecting the cell changes it back to a text cell and renders the toString() of the button. I had to do a big hack 
of using Proxy TableCellEditor and TableCellRenderers just to get this working. 

Comment 7 Jaroslav Tulach 2010-04-12 14:31:18 UTC
Any one can provide a patch at least for some of these issues? If not, I don't feel able to implement them.