| | |
| | | /* |
| | | * 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) { |
| | |
| | | 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(); |
| | | } |
| | | |