| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComponentEvent
An event that may originate in application logic, or as a result of a client interaction (a GET or POST from the client).
ComponentResourcesCommon.triggerEvent(String, Object[], org.apache.tapestry5.ComponentEventCallback), 
ComponentEventCallback| Method Summary | |
|---|---|
|  Object | coerceContext(int index,
                           String desiredTypeName)Coerces a context value to a particular type. | 
|  Object[] | getContext()Returns the underlying EventContextas a (possibly empty) array. | 
|  EventContext | getEventContext()Returns the underlying event context. | 
|  boolean | matches(String eventType,
               String componentId,
               int parameterCount)Returns true if the event matches the provided criteria and the event has not yet been aborted. | 
| Methods inherited from interface org.apache.tapestry5.runtime.Event | 
|---|
| isAborted, setMethodDescription, storeResult | 
| Method Detail | 
|---|
boolean matches(String eventType,
                String componentId,
                int parameterCount)
eventType - the type of event (case insensitive match)componentId - component is to match against (case insensitive), or the empty stringparameterCount - minimum number of context values
Object coerceContext(int index,
                     String desiredTypeName)
index - the index of the context valuedesiredTypeName - the desired type
Object[] getContext()
EventContext as a (possibly empty) array.
EventContext getEventContext()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||