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

Summary: OutlineView getNodeFromRow should be public
Product: platform Reporter: maxnitribitt <maxnitribitt>
Component: Outline&TreeTableAssignee: Martin Entlicher <mentlicher>
Status: REOPENED ---    
Severity: normal CC: arittner
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.