public final class EventCastUtil extends Object
Event to needed event class.| Modifier and Type | Method and Description |
|---|---|
static <T extends org.zkoss.zk.ui.event.Event> |
cast(org.zkoss.zk.ui.event.Event event,
Class<T> type)
Converts the given event to the needed type.
|
public static <T extends org.zkoss.zk.ui.event.Event> T cast(org.zkoss.zk.ui.event.Event event,
Class<T> type)
If cast of event fails a IllegalArgumentException is thrown.
T - the generic type for the conversionevent - the event to converttype - the generic type to cast for the given eventIllegalArgumentException if cast failsCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.