org.apache.tapestry5
Interface EventContext

All Known Implementing Classes:
EmptyEventContext, URLEventContext

public interface EventContext

A collection of parameters that may eventually be passed to an event handler method. Includes the ability to coerce or encode parameters as needed.

See Also:
TypeCoercer, ValueEncoder

Method Summary
<T> T
get(Class<T> desiredType, int index)
          Extracts a parameter value and coerces or decodes it to the desired type.
 int getCount()
          Returns the number of parameter values that can be extracted.
 

Method Detail

getCount

int getCount()
Returns the number of parameter values that can be extracted.


get

<T> T get(Class<T> desiredType,
          int index)
Extracts a parameter value and coerces or decodes it to the desired type.

Parameters:
desiredType - the type of value required
index - identifies which parameter value to extract
Returns:
the value extracted and converted or coerced
Throws:
RuntimeException - if the value can't be converted or the index is out of range


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.