01: /* AbstractUiFactory.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Tue May 15 15:00:32 2007, 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.Command;
22: import javax.microedition.lcdui.CommandListener;
23: import javax.microedition.lcdui.Displayable;
24: import javax.microedition.lcdui.Item;
25:
26: import org.xml.sax.Attributes;
27: import org.zkoss.zkmob.UiFactory;
28: import org.zkoss.zkmob.UiManager;
29: import org.zkoss.zkmob.ui.ZkDesktop;
30:
31: /**
32: * An UiFactory skeleton which registers itself to the {@link UiManager}.
33: *
34: * @author henrichen
35: */
36: public abstract class AbstractUiFactory implements UiFactory {
37:
38: protected AbstractUiFactory(String name) {
39: UiManager.registerUiFactory(name, this);
40: }
41: }
|