menu
Class QuitableMIDlet

java.lang.Object
  |
  +--javax.microedition.midlet.MIDlet
        |
        +--menu.QuitableMIDlet
Direct Known Subclasses:
NetGet, UView

public abstract class QuitableMIDlet
extends javax.microedition.midlet.MIDlet

This class is a kludge in order to let the PageMgr terminate the running midlet when the user requests that we Exit. The methods destroyApp and notifyDestroyed methods have protected/package access in MIDlet, and so they are not accessible to other arbitrary classes.

$Id: QuitableMIDlet.java,v 1.1 2003/01/19 18:06:27 finson Exp $


Constructor Summary
QuitableMIDlet()
           
 
Method Summary
 void quitApp()
          Call destroyApp, then notifyDestroyed, thereby shutting down this midlet.
 
Methods inherited from class javax.microedition.midlet.MIDlet
destroyApp, getAppProperty, notifyDestroyed, notifyPaused, pauseApp, resumeRequest, startApp
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuitableMIDlet

public QuitableMIDlet()
Method Detail

quitApp

public void quitApp()
             throws javax.microedition.midlet.MIDletStateChangeException
Call destroyApp, then notifyDestroyed, thereby shutting down this midlet.

Throws:
javax.microedition.midlet.MIDletStateChangeException - thrown if the MIDlet wishes to continue to execute (Not enter the Destroyed state).