01: /* PageLoader.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: May 22, 2007 11:08:24 AM, 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;
20:
21: import javax.microedition.lcdui.Display;
22:
23: /**
24: * PageLoader that load page in another thread and setup associated Display.
25: * @author henrichen
26: */
27: public class PageRequest implements Runnable {
28: private Browser _browser;
29: private String _url;
30:
31: public PageRequest(Browser browser, String url) {
32: _browser = browser;
33: _url = url;
34: }
35:
36: public void run() {
37: UiManager.loadPage(_browser, _url);
38: }
39: }
|