Messagebox"

From Documentation
m (Created page with 'init')
 
Line 1: Line 1:
init
+
{{ZKComponentReferencePageHeader}}
 +
 
 +
= Messagebox =
 +
 
 +
*Demonstration: [http://www.zkoss.org/zkdemo/userguide/#l8 Messagebox]
 +
*Java API: <javadoc>org.zkoss.zul.Messagebox</javadoc>
 +
*JavaScript API: N/A
 +
 
 +
= Employment/Purpose =
 +
 
 +
It provides a set of utilities to show message boxes.
 +
 
 +
It is typically used to alert users when an error occurs, or to prompt user for an decision.
 +
 
 +
 
 +
= Example =
 +
 
 +
<source lang="xml" >
 +
<window title="Messagebox demo" border="normal">
 +
<button label="Question" width="100px">
 +
<attribute name="onClick">{ Messagebox.show("Question is pressed. Are
 +
you sure?", "Question", Messagebox.OK | Messagebox.CANCEL,
 +
Messagebox.QUESTION); }</attribute>
 +
</button>
 +
</window>
 +
</source>
 +
 
 +
 
 +
 
 +
=Supported events=
 +
 
 +
{| border="1" | width="100%"
 +
! <center>Name</center>
 +
! <center>Event Type</center>
 +
|-
 +
| None
 +
| None
 +
|}
 +
 
 +
=Supported Children=
 +
 
 +
{| border="1" | width="100%"
 +
! <center>Name</center>
 +
! <center>Event Type</center>
 +
|-
 +
| None
 +
| None
 +
|}
 +
 
 +
=Use cases=
 +
 
 +
{| border='1px' | width="100%"
 +
! Version !! Description !! Example Location
 +
|-
 +
| &nbsp;
 +
| &nbsp;
 +
| &nbsp;
 +
|}
 +
 
 +
=Version History=
 +
 
 +
{| border='1px' | width="100%"
 +
! Version !! Date !! Content
 +
|-
 +
| 5.0.2
 +
| 5/18/2010
 +
| Initialization
 +
|}
 +
 
 +
{{ZKComponentReferencePageFooter}}

Revision as of 04:59, 18 May 2010

Messagebox

Employment/Purpose

It provides a set of utilities to show message boxes.

It is typically used to alert users when an error occurs, or to prompt user for an decision.


Example

<window title="Messagebox demo" border="normal">
	<button label="Question" width="100px">
		<attribute name="onClick">{ Messagebox.show("Question is pressed. Are
			you sure?", "Question", Messagebox.OK | Messagebox.CANCEL,
			Messagebox.QUESTION); }</attribute>
	</button>
</window>


Supported events

Name
Event Type
None None

Supported Children

Name
Event Type
None None

Use cases

Version Description Example Location
     

Version History

Version Date Content
5.0.2 5/18/2010 Initialization



Last Update : 2010/05/18

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