Widget Events
A widget event is the widget-level event (Event).
Like Event at the server side, the widget event can be any thing, and can be triggered by a widget or an application to notify a widget-level or application-level event, such as a window has been moved.
In additions, ZK Client Engine intercepts most DOM events and encapsulate them into widgets events, such that it is easier and more efficient for component developers to handle events at widget-level (rather than DOM-level, Event).
Event Propgation
A widget event will be propagated to the parent widget, parent's parent and so on, until stopped (Event.stop(Map)). Then, if the event is required by the server, it will be sent to the server, and converted to an instance of AuRequest at the server[1].
Event Firing
To fire a widget event, you could invoke Widget.fire(String, Object, Map, int) or Widget.fireX(Event, int).
Event Listening for Application Developers
To listen a widget event, you could invoke Widget.listen(Map, int).
Event Listening for Component Developers
Version History
Version | Date | Content |
---|---|---|
- ↑ For more information, please refer to the AU Requests section.