01: /* TimerDefault.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Sep 6, 2007 2:21:06 PM , Created by robbiecheng
10: }}IS_NOTE
11:
12: Copyright (C) 2007 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.zkmax.zul.render;
20:
21: import java.io.IOException;
22: import java.io.Writer;
23:
24: import org.zkoss.zk.ui.Component;
25: import org.zkoss.zk.ui.render.ComponentRenderer;
26: import org.zkoss.zk.ui.render.SmartWriter;
27: import org.zkoss.zul.Timer;
28:
29: /**
30: * {@link Timer}'s default mold.
31: * @author robbiecheng
32: * @since 3.0.0
33: */
34: public class TimerDefault implements ComponentRenderer {
35: public void render(Component comp, Writer out) throws IOException {
36: final SmartWriter wh = new SmartWriter(out);
37: final Timer self = (Timer) comp;
38:
39: wh.write("<span id=\"").write(self.getUuid()).write(
40: "\" z.type=\"zul.timer.Timer\"").write(
41: self.getOuterAttrs()).write(self.getInnerAttrs())
42: .write("></span>");
43: }
44: }
|