| org.apache.tapestry.runtime.ComponentEvent
All known Subclasses: org.apache.tapestry.internal.services.ComponentEventImpl,
Method Summary | |
Object | coerceContext(int index, String desiredTypeName) Coerces a context value to a particular type. | Object[] | getContext() Returns the raw context as a (possibly empty) array. | boolean | matchesByComponentId(String componentId) Returns true if the originating component matches any of the components identified by their
ids. | boolean | matchesByEventType(String eventType) Returns true if the component event's type matches any of the provided values. | boolean | matchesByParameterCount(int parameterCount) Returns true if the event context contains the specified number of parameters (or more). |
coerceContext | Object coerceContext(int index, String desiredTypeName)(Code) | | Coerces a context value to a particular type. The context is an array of objects; typically
it is an array of strings of extra path information encoded into the action URL.
< Parameters: T - > Parameters: index - the index of the context value Parameters: desiredTypeName - the desired type Parameters: methodDescription - the method for which the conversion will take place (used if reporting an error) the coerced value (a wrapper type if the desired type is a primitive) |
getContext | Object[] getContext()(Code) | | Returns the raw context as a (possibly empty) array.
|
matchesByComponentId | boolean matchesByComponentId(String componentId)(Code) | | Returns true if the originating component matches any of the components identified by their
ids. This filter is only relevent in the immediate container of the originating component (it
will never match at higher levels). Comparison is caseless.
|
matchesByEventType | boolean matchesByEventType(String eventType)(Code) | | Returns true if the component event's type matches any of the provided values. Comparison is
caseless.
Parameters: eventType - true if there is any match |
matchesByParameterCount | boolean matchesByParameterCount(int parameterCount)(Code) | | Returns true if the event context contains the specified number of parameters (or more).
Parameters: parameterCount - number of parameters in the event handler method true if the event can |
|
|