Toolbar"

From Documentation
Line 40: Line 40:
 
! <center>Event Type</center>
 
! <center>Event Type</center>
 
|-
 
|-
| None
+
| <center><tt>onClick</tt></center>
| None
+
| [#MouseEvent org.zkoss.zk.ui.event.MouseEvent]
 +
 
 +
'''Description: '''
 +
 
 +
Denotes user has clicked the component.
 +
 
 +
|-
 +
| <center>onRightClick</center>
 +
| [#MouseEvent org.zkoss.zk.ui.event.MouseEvent]
 +
 
 +
'''Description: '''
 +
 
 +
Denotes user has right-clicked the component.
 +
 
 +
|-
 +
| <center>onDoubleClick</center>
 +
| [#MouseEvent org.zkoss.zk.ui.event.MouseEvent]
 +
 
 +
'''Description: '''
 +
 
 +
Denotes user has double-clicked the component.
 +
 
 
|}
 
|}
  

Revision as of 07:20, 12 May 2010

Toolbar

Employment/Purpose

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 : Button, Toolbarbutton

Example

ZKComRef Toolbar Example.png


<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>

Supported events

Name
Event Type
onClick
[#MouseEvent org.zkoss.zk.ui.event.MouseEvent]

Description:

Denotes user has clicked the component.

onRightClick
[#MouseEvent org.zkoss.zk.ui.event.MouseEvent]

Description:

Denotes user has right-clicked the component.

onDoubleClick
[#MouseEvent org.zkoss.zk.ui.event.MouseEvent]

Description:

Denotes user has double-clicked the component.

Supported Children

*ALL

Use cases

Version Description Example Location
5.0+    

Version History

Version Date Content
5.x.x x/x/20xx Initialization



Last Update : 2010/05/12

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.