OpenEvent"

From Documentation
m ((via JWB))
 
(4 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
*Demonstration: [http://www.zkoss.org/zkdemo/userguide/#e9 OpenEvent]
 
*Demonstration: [http://www.zkoss.org/zkdemo/userguide/#e9 OpenEvent]
 
*Java API: <javadoc>org.zkoss.zk.ui.event.OpenEvent</javadoc>
 
*Java API: <javadoc>org.zkoss.zk.ui.event.OpenEvent</javadoc>
 +
*JavaScript API: N/A
  
 
= Employment/Purpose =
 
= Employment/Purpose =
Line 10: Line 11:
 
Represents an event cause by user's openning or closing something at the client.
 
Represents an event cause by user's openning or closing something at the client.
  
Note: it is a bit confusing but <tt>Events.ON_CLOSE</tt> is sent when user clicks a close button. It is a request to ask the server to close a window, a tab or others. If the server ignores the event, nothing will happen at the client. By default, the component is detached when receiving this event.
+
Note: it is a bit confusing but <code>Events.ON_CLOSE</code> is sent when user clicks a close button. It is a request to ask the server to close a window, a tab or others. If the server ignores the event, nothing will happen at the client. By default, the component is detached when receiving this event.
  
On the other hand,<tt> Events.ON_OPEN</tt> (with <tt>OpenEvent</tt>) is a notification. It is sent to notify the server that the client has opened or closed something. And, the server can not prevent the client from opening or closing.
+
On the other hand,<code> Events.ON_OPEN</code> (with <code>OpenEvent</code>) is a notification. It is sent to notify the server that the client has opened or closed something. And, the server can not prevent the client from opening or closing.
  
 
= Example =
 
= Example =
  
 +
N/A
  
 
=Supported events=
 
=Supported events=
  
{| border="1" | width="100%"
+
{| class='wikitable' | width="100%"
 
! <center>Name</center>
 
! <center>Name</center>
 
! <center>Event Type</center>
 
! <center>Event Type</center>
Line 33: Line 35:
 
=Use cases=
 
=Use cases=
  
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Description !! Example Location
 
! Version !! Description !! Example Location
 
|-
 
|-
Line 43: Line 45:
 
=Version History=
 
=Version History=
  
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-
| 5.0.1
+
| &nbsp;
| 4/30/2010
+
| &nbsp;
| Initialization
+
| &nbsp;
 
|}
 
|}
  
 
{{ZKComponentReferencePageFooter}}
 
{{ZKComponentReferencePageFooter}}

Latest revision as of 10:41, 12 January 2022

OpenEvent

Employment/Purpose

Represents an event cause by user's openning or closing something at the client.

Note: it is a bit confusing but Events.ON_CLOSE is sent when user clicks a close button. It is a request to ask the server to close a window, a tab or others. If the server ignores the event, nothing will happen at the client. By default, the component is detached when receiving this event.

On the other hand, Events.ON_OPEN (with OpenEvent) is a notification. It is sent to notify the server that the client has opened or closed something. And, the server can not prevent the client from opening or closing.

Example

N/A

Supported events

Name
Event Type
None None

Supported Children

*NONE

Use cases

Version Description Example Location
     

Version History

Version Date Content
     



Last Update : 2022/01/12

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