org.apache.tapestry5
Interface ComponentEventCallback<T>
- All Known Implementing Classes:
- ComponentResultProcessorWrapper, NotificationEventCallback
public interface ComponentEventCallback<T>
Callback interface for a org.apache.tapestry5.runtime.Event render phase event) or {@link
org.apache.tapestry5.runtime.ComponentEvent}, notified when a non-null value is returned from some event handler
method.
|
Method Summary |
boolean |
handleResult(T result)
Invoked to handle a non-null event handler method result. |
handleResult
boolean handleResult(T result)
- Invoked to handle a non-null event handler method result. The handler should determine whether the value is
acceptible, and throw an exception if not. Any thrown exception will be wrapped to identify the component and
method from which the value was returned.
Boolean values are not passed to the handler. Booleans are used to indicate that the event has been
handled (true) or that a further search for handlers should continue (true). If a component event method returns
true, then
Event.isAborted() will return true.
- Parameters:
result - the result value return from the event handler method
- Returns:
- true if the event is aborted, false if the event may continue
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.