Obliczenia brydżowe (Java ME)
Jacek Kowalski
2012-08-08 01ec5ff9c53c1285ebe2e89544c56a3e1c705501
commit | author | age
2e729d 1 package brydz;
JK 2
3 import javax.microedition.lcdui.*;
4
5 /**
6  *
7  */
8 public class BrydzMIDlet extends javax.microedition.midlet.MIDlet {
9     protected BrydzForm form = null;
bf2df0 10     protected Display display = null;
e75708 11     protected String version = null;
2e729d 12     
JK 13     public void startApp() {
bf2df0 14         if(this.form == null) {
2e729d 15             this.form = new BrydzForm(this);
JK 16         }
bf2df0 17         if(this.display == null) {
JK 18             this.display = Display.getDisplay(this);
19         }
e75708 20         if(this.version == null) {
JK 21             this.version = this.getAppProperty("MIDlet-Version");
22         }
bf2df0 23         this.display.setCurrent(this.form);
2e729d 24     }
JK 25     
26     public void pauseApp() {
e75708 27         this.form = null;
2e729d 28         this.notifyPaused();
JK 29     }
30     
31     public void destroyApp(boolean unconditional) {
32         this.notifyDestroyed();
33     }
34 }