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 178434 - OutlineView getNodeFromRow should be public
Summary: OutlineView getNodeFromRow should be public
Status: REOPENED
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 6.x
Hardware: PC All
: P3 normal with 3 votes (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-10 08:42 UTC by maxnitribitt
Modified: 2014-03-27 18:01 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 maxnitribitt 2009-12-10 08:42:30 UTC
Without getNodeFromRow being accessible it's hard to create custom renderer that replaces the default one.

Example Usecase: a user wants a different background color for the row when a nodes lookup contains a certain object.
Comment 1 Martin Entlicher 2010-02-25 15:05:16 UTC
I do not see what would you do with the Node if getNodeFromRow() was accessible.
You probably want to use JTable.setDefaultRenderer(...)
Comment 2 maxnitribitt 2010-02-28 01:42:44 UTC
> I do not see what would you do with the Node if getNodeFromRow() was
> accessible.

I want to use the method for it's intended purpose, helping to access a node in order to render it. 


E.g. I want to access the Nodes lookup. Nodes usually are wrappers around dataobjects contained in nodes lookup. if I want to render based on the dataobject there is currently no way to access it.

Use case I want to set the background color of the row based on a property of the dataobject. Currently there is no way

> You probably want to use JTable.setDefaultRenderer(...)

Could you explain how it would solve the use case (set the background color of the row based on a property of the dataobject)?
Comment 3 arittner 2014-03-27 16:26:39 UTC
I bump this feature report.

I need a solution to show a different background color for cells with missing properties.

In outlines I show different nodes (with different property-sets). The user can't see if a property is empty or a property doesn't exists.