List and Tree Events

Event Name

Components

Description

onSelect

listboxtabboxtabtreecombobox

Event: org.zkoss.zk.ui.event.SelectEvent

Denotes user has selected one or multiple child components. For listbox, it is a set of listitem. For tree, it is a set of treeitem. For tabbox, it is a tab.

Note: onSelect is sent to both tab and tabbox.

onOpen

north

east

west

south

groupbox treeitem combobox bandboxmenupopupwindow

Event: org.zkoss.zk.ui.event.OpenEvent

Denotes user has opened or closed a component. Note: unlike onClose, this event is only a notification. The client sends this event after opening or closing the component.

It is useful to implement load-on-demand by listening to the onOpen event, and creating components when the first time the component is opened.