01: /* ZkTicker.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: May 29, 2007 3:46:26 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.ui;
20:
21: import javax.microedition.lcdui.Command;
22: import javax.microedition.lcdui.Ticker;
23:
24: import org.zkoss.zkmob.ZkComponent;
25:
26: /**
27: * @author henrichen
28: *
29: */
30: public class ZkTicker extends Ticker implements ZkComponent {
31: private String _id;
32: private ZkDesktop _zk;
33:
34: public ZkTicker(ZkDesktop zk, String id, String text) {
35: super (text);
36: _id = id;
37: _zk = zk;
38: }
39:
40: //--ZkComponent--//
41: public String getId() {
42: return _id;
43: }
44:
45: public ZkDesktop getZkDesktop() {
46: return _zk;
47: }
48:
49: public void setParent(ZkComponent parent) {
50: _zk = (ZkDesktop) parent;
51: }
52:
53: public ZkComponent getParent() {
54: return getZkDesktop();
55: }
56:
57: public void setAttr(String attr, String val) {
58: //TODO:
59: }
60:
61: public void addCommand(Command cmd) {
62: //do nothing
63: }
64:
65: public void removeCommand(Command cmd) {
66: //do nothing
67: }
68: }
|