01: /* AuClientInfo.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Fri Jul 28 11:39:43 2006, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2006 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: }}IS_RIGHT
16: */
17: package org.zkoss.zk.au.out;
18:
19: import org.zkoss.zk.ui.Desktop;
20: import org.zkoss.zk.au.AuResponse;
21:
22: /**
23: * A response to ask the browser to send back its information.
24: *
25: * @author tomyeh
26: * @see org.zkoss.zk.ui.event.ClientInfoEvent
27: * @since 3.0.0
28: */
29: public class AuClientInfo extends AuResponse {
30: /** Contructs a client-info response with the specified desktop.
31: *
32: * @param desktop the desktop to get the client info back.
33: * If null, the client info is sent back for each desktop in the
34: * same browser window.
35: * @since 3.0.0
36: */
37: public AuClientInfo(Desktop desktop) {
38: super ("clientInfo", desktop != null ? desktop.getId() : null);
39: }
40:
41: /** Constructs a client-info response for all desktops of the same
42: * browser window.
43: */
44: public AuClientInfo() {
45: this(null);
46: }
47: }
|