commit | author | age
|
9c48cd
|
1 |
/* |
JK |
2 |
* Copyright (c) 2012, Jacek Kowalski (http://jacekk.info) |
|
3 |
* Wszystkie prawa zastrzeżone |
|
4 |
* |
|
5 |
* Licencja w pliku BSD-3.txt |
|
6 |
*/ |
|
7 |
|
2e729d
|
8 |
package brydz; |
JK |
9 |
|
|
10 |
import javax.microedition.lcdui.*; |
|
11 |
|
|
12 |
/** |
|
13 |
* |
|
14 |
*/ |
|
15 |
public class BrydzMIDlet extends javax.microedition.midlet.MIDlet { |
|
16 |
protected BrydzForm form = null; |
bf2df0
|
17 |
protected Display display = null; |
e75708
|
18 |
protected String version = null; |
2e729d
|
19 |
|
JK |
20 |
public void startApp() { |
bf2df0
|
21 |
if(this.form == null) { |
2e729d
|
22 |
this.form = new BrydzForm(this); |
JK |
23 |
} |
bf2df0
|
24 |
if(this.display == null) { |
JK |
25 |
this.display = Display.getDisplay(this); |
|
26 |
} |
e75708
|
27 |
if(this.version == null) { |
JK |
28 |
this.version = this.getAppProperty("MIDlet-Version"); |
|
29 |
} |
bf2df0
|
30 |
this.display.setCurrent(this.form); |
2e729d
|
31 |
} |
JK |
32 |
|
|
33 |
public void pauseApp() { |
e75708
|
34 |
this.form = null; |
2e729d
|
35 |
this.notifyPaused(); |
JK |
36 |
} |
|
37 |
|
|
38 |
public void destroyApp(boolean unconditional) { |
|
39 |
this.notifyDestroyed(); |
|
40 |
} |
|
41 |
} |