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.
The ProxyLook allows subclasses to change the represented object for Looks it is delegating to, however, it doesn't allow to provide inverse conversion for represented object carried by events fired from those delegates. Shortly, the events fired from ProxyLook don't work when the subclass translates represented object. The off-line discussion with Hrebejk showed that there are basicaly two situation: (1) the subclass can easily do the inverse translation, because the translated represented object keeps the reference to the original represeneted object and (2) the #1 doesn't hold and subclass has to keep the map of translated and original represented objects. Tha API should be extended to support for both these situations and encourage people to provide inverse translation implementation whenever possible.
Added failing test. ProxyLookEventsWithDelegateObjectTest
undelegateObject method added into the ProxyLook. The method has to be implemented correctly. There is no fallback for an insufficient data model where there is no way back from delegate to original object yet. This might be implemented later when really necessary but I don't want to motivate people not to override the method,
closed