01: /* TickerFactory.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: May 16, 2007 4:21:13 PM, Created by henrichen
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.zkmob.factory;
20:
21: import javax.microedition.lcdui.Ticker;
22:
23: import org.xml.sax.Attributes;
24: import org.zkoss.zkmob.ZkComponent;
25: import org.zkoss.zkmob.ui.ZkTicker;
26:
27: /**
28: * An UiFactory to create a Ticker.
29: * @author henrichen
30: *
31: */
32: public class TickerFactory extends AbstractUiFactory {
33: public TickerFactory(String name) {
34: super (name);
35: }
36:
37: public ZkComponent create(ZkComponent parent, String tag,
38: Attributes attrs, String hostURL, String pathURL) {
39: final String id = attrs.getValue("id"); //id
40: final String string = attrs.getValue("tx"); //String
41:
42: final ZkTicker component = new ZkTicker(((ZkComponent) parent)
43: .getZkDesktop(), id, string);
44:
45: return component;
46: }
47: }
|