EVALUATION
Yep.
EventHandler should better document the possibilities for the 'eventPropertyName' argument.
Currently EventHandler does not enforce valid arguments. The 'target', 'action' and 'listenerInterface' arguments need to be non-null for it to work correctly. The constructor and create method will now check these arguments and immediately throw an IllegalArgumentException if any are null.
###@###.### 2004-12-06 17:50:44 GMT
Also, I've determined through trial and error that specifying "" for the eventPropertyName causes the whole event to be passed to the target action. I think this is useful behavior, but we need to document it.
###@###.### 2004-12-06 18:08:22 GMT
The spec changes will cover what 'eventPropertyName' is capable of, as well as that target/action/listenerInterface need to be non-null.
###@###.### 2004-12-06 21:42:00 GMT
The documentation has been updated appropriately and a NullPointerException will be thrown from the create and constructor methods.
###@###.### 2004-12-17 20:34:46 GMT
|