| org.apache.tapestry.runtime.Event
All known Subclasses: org.apache.tapestry.internal.services.EventImpl,
Event | public interface Event (Code) | | The core methods related to event handling. Events used in this way exist to gather data from
user code, by invoking user methods and capturing the response. Return values from methods, if
non-null, are passed to a
ComponentEventHandler . The
ComponentEvent subinterface
extends this by providing access to a context, or set of information related to the event, along
with additional data used, at runtime, to match events to user code methods.
|
Method Summary | |
boolean | isAborted() Returns true if the event has been aborted (meaning that the return value from some event
handler method was accepted, and processing of the event was terminated). | void | setSource(Component component, String methodDescription) Invoke to identify, to the event, what component and method is being acted upon (used for
some kinds of exception reporting). | boolean | storeResult(Object result) Stores a result for the event. |
isAborted | boolean isAborted()(Code) | | Returns true if the event has been aborted (meaning that the return value from some event
handler method was accepted, and processing of the event was terminated).
true if no further event handler methods should be invoked |
setSource | void setSource(Component component, String methodDescription)(Code) | | Invoke to identify, to the event, what component and method is being acted upon (used for
some kinds of exception reporting).
Parameters: component - the component instance from which the result was obtained Parameters: methodDescription - |
storeResult | boolean storeResult(Object result)(Code) | | Stores a result for the event. Storing a non-null result value may abort the event (at the
discretion of the
ComponentEventHandler ).
Parameters: result - the result obtained from a method invocations true if the event is now aborted |
|
|