01: /* GenericMobileRichlet.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Mon Aug 6 20:45:13 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.mil;
20:
21: import org.zkoss.zk.ui.GenericRichlet;
22: import org.zkoss.zk.ui.metainfo.LanguageDefinition;
23:
24: /**
25: * Defines a genric richlet for ZK Mobile. Developers can use it as a skeleton to implement
26: * an application-specific ZK Mobile richlet.
27: *
28: * @author henrichen
29: */
30: abstract public class GenericMobileRichlet extends GenericRichlet {
31: /** Returns the language defintion that this richlet belongs to.
32: * Don't return null.
33: *
34: * <p> It is called when creating a new page for this richlet to serve.
35: *
36: * <p>Default: return the language definition called "mil".
37: */
38: public LanguageDefinition getLanguageDefinition() {
39: return LanguageDefinition.lookup("mil");
40: }
41: }
|