| | |
| | | */ |
| | | 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.form == null) { |
| | | this.form = new BrydzForm(this); |
| | | } |
| | | |
| | | Display.getDisplay(this).setCurrent(this.form); |
| | | 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(); |
| | | } |
| | | |