
Constructs an
InvocationEvent with the specified
source which will execute the runnable's
run
method when dispatched. If notifier is non-
null,
notifyAll() will be called on it
immediately after
run returns.
An invocation of the form InvocationEvent(source,
runnable, notifier, catchThrowables)
behaves in exactly the same way as the invocation of
InvocationEvent(source, InvocationEvent.INVOCATION_DEFAULT, runnable, notifier, catchThrowables).
This method throws an IllegalArgumentException
if source is null.
Parameters:
- source - the Object that originated
the event
- runnable - the Runnable whose
run method will be
executed
- notifier - the Object whose notifyAll
method will be called after
Runnable.run has returned
- catchThrowables - specifies whether dispatch
should catch Throwable when executing
the Runnable's run
method, or should instead propagate those
Throwables to the EventDispatchThread's
dispatch loop
Throws:
- IllegalArgumentException - if source is null
See Also:
InvocationEvent.InvocationEvent(Object, int, Runnable, Object, boolean),