JDK-4625422 : java.beans.EventHandler should have a way to pass the event object to action.
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.beans
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2002-01-17
  • Updated: 2004-12-14
  • Resolved: 2004-12-14
Related Reports
Relates :  
Description

Name: nt126004			Date: 01/17/2002


FULL PRODUCT VERSION :
java version "1.4.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b84)
Java HotSpot(TM) Client VM (build 1.4.0-beta3-b84, mixed mode)

FULL OPERATING SYSTEM VERSION :
Windows NT Version 4.0



A DESCRIPTION OF THE PROBLEM :
EventHandler provides a way to pass a property of the
source event object to the action method.  It would be
helpful if there was some way to specificy that you want
the entire event object passed to action, since sometimes
more than one property is of interest.

This bug can be reproduced often.

CUSTOMER WORKAROUND :
Use anonymous or internal class.
(Review ID: 138371) 
======================================================================

Comments
EVALUATION The definition of the EventHandler is too narrow for general object to object intactions. EventHandler asumes that all state is passed though the EventObject. There should be a general purpose handler in whic arbitrary Objects, Actions or parameter lists can be passed for execution. ###@###.### 2002-05-24 This is supported, just not documented well. If you pass in "" as the eventPropertyName you'll get the event object passed to the method. As part of 6204552 the documentation is being expanded to indicate this possibility. ###@###.### 2004-12-14 21:16:59 GMT
14-12-2004