Toolbar

A toolbar is used to place a series of buttons, such as toolbarbutton or button. The toolbar buttons could be used without toolbars, so a toolbar could be used without tool buttons. However, tool buttons change their appearance if they are placed inside a toolbar.

The toolbar has two orientation: horizontal and vertical. It controls how the buttons are placed.

See also : org.zkoss.zul.Button , org.zkoss.zul.Toolbarbutton

<window title="Toolbar window" border="normal" width="300px">
    <toolbar>    
        <toolbarbutton label="Left" /><space/>        
        <toolbarbutton label="Right" image="/img/folder.gif" dir="reverse"/>        
    </toolbar>    
    <toolbar orient="vertical">    
        <button label="Left" image="/img/folder.gif" width="125px"/>        
        <toolbarbutton label="Right" image="/img/folder.gif" dir="reverse"/>        
    </toolbar>    
</window>

Class Name

org.zkoss.zul.Toolbar

Supported Child Components

*ALL

Supported Events

Event Name

Event Type

onClick

org.zkoss.zk.ui.event.MouseEvent

Description:

Denotes user has clicked the component.

onRightClick

org.zkoss.zk.ui.event.MouseEvent

Description:

Denotes user has right-clicked the component.

onDoubleClick

org.zkoss.zk.ui.event.MouseEvent

Description:

Denotes user has double-clicked the component.

Properties

Property

Description

Data Type

Default Value

ori ent

Sets the orient.

Values : horizontal|vertical

String

horizontal

Methods

*NONE

Inherited From