public final class EventUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends org.zkoss.zk.ui.event.Event> |
notifyListeners(org.zkoss.zk.ui.Component component,
String eventName,
T event)
Notifies all listeners for the specified event-name on the specified component about the
event.
|
static <T extends org.zkoss.zk.ui.event.Event> |
notifyListenersIfAny(org.zkoss.zk.ui.Component component,
String eventName,
T event)
Notifies all listeners for the specified event-name on the specified component about the
event.
|
public static <T extends org.zkoss.zk.ui.event.Event> void notifyListenersIfAny(org.zkoss.zk.ui.Component component,
String eventName,
T event)
throws Exception
T - the type of the eventcomponent - the component to get the event listeners fromeventName - the name of the event the listeners were registered onevent - the event to send to the listenersException - an exception that occured in the event listeners when handling the eventpublic static <T extends org.zkoss.zk.ui.event.Event> boolean notifyListeners(org.zkoss.zk.ui.Component component,
String eventName,
T event)
throws Exception
T - the type of the eventcomponent - the component to get the event listeners fromeventName - the name of the event the listeners were registered onevent - the event to send to the listenersException - an exception that occured in the event listeners when handling the eventCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.