01: /* AuSetAttribute.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Thu Oct 13 11:28:05 2005, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2005 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.zk.au.out;
20:
21: import org.zkoss.zk.ui.Component;
22: import org.zkoss.zk.au.AuResponse;
23:
24: /**
25: * A response to set the attribute of the specified component at the client.
26: * <p>data[0]: the uuid of the component<br/>
27: * data[1]: the attribute name<br/>
28: * data[2]: the attribute value
29: *
30: * @author tomyeh
31: * @since 3.0.0
32: */
33: public class AuSetAttribute extends AuResponse {
34: public AuSetAttribute(Component comp, String attr, String val) {
35: super ("setAttr", comp,
36: new String[] { comp.getUuid(), attr, val });
37: }
38: }
|