|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
TypeCoercer,
ValueEncoder| Method Summary | ||
|---|---|---|
|
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. |
|
String[] |
toStrings()
Extracts the value of each context value as a string. |
|
| Method Detail |
|---|
int getCount()
<T> T get(Class<T> desiredType,
int index)
desiredType - the type of value requiredindex - identifies which parameter value to extract
RuntimeException - if the value can't be converted or the index is out of rangeString[] toStrings()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||