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