| org.apache.tapestry.ComponentEventHandler
All known Subclasses: org.apache.tapestry.internal.util.NotificationEventHandler,
ComponentEventHandler | public interface ComponentEventHandler (Code) | | Handler for a
ComponentEvent , notified when a non-null value is returned from some event
handler method.
TODO: Multiple handlers for different result types / strategy pattern?
|
Method Summary | |
boolean | handleResult(T result, Component component, String methodDescription) Invoked to handle a non-null event handler method result. |
handleResult | boolean handleResult(T result, Component component, String methodDescription)(Code) | | 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.
Parameters: result - the result value provided by a method Parameters: component - the component from which the result was obtained Parameters: methodDescription - a string description of the class and method name (used when errors occur). true if the event is aborted, false if the event may continue |
|
|