Class PView

java.lang.Object
  |
  +--javax.microedition.midlet.MIDlet
        |
        +--menu.QuitableMIDlet
              |
              +--PView

public class PView
extends QuitableMIDlet

This class implements a midlet that reads and displays various device properties.


Constructor Summary
PView()
          Construct the screens needed to implement the midlet.
 
Method Summary
protected  void destroyApp(boolean u)
          Called by the application management software to signal the MIDlet to terminate and enter the Destroyed state.
protected  void pauseApp()
          Called by the application management software to signal the MIDlet to stop and enter the Paused state.
 void startApp()
          Initialize the various data objects and related screens.
 
Methods inherited from class menu.QuitableMIDlet
quitApp
 
Methods inherited from class javax.microedition.midlet.MIDlet
getAppProperty, notifyDestroyed, notifyPaused, resumeRequest
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PView

public PView()
Construct the screens needed to implement the midlet.

Method Detail

startApp

public void startApp()
Initialize the various data objects and related screens. Called by the application management software to signal the MIDlet that it has entered the Active state. In the Active state the MIDlet may hold resources. The method will only be called when the MIDlet is in the Paused state. If any exceptions occur, we immediately transition to the destroyed state.

Specified by:
startApp in class javax.microedition.midlet.MIDlet

pauseApp

protected void pauseApp()
Called by the application management software to signal the MIDlet to stop and enter the Paused state. In the Paused state the MIDlet must release shared resources and become quiescent. This method will only be called when the MIDlet is in the Active state.

Specified by:
pauseApp in class javax.microedition.midlet.MIDlet

destroyApp

protected void destroyApp(boolean u)
Called by the application management software to signal the MIDlet to terminate and enter the Destroyed state. In the destroyed state the MIDlet must release all resources and save any persistent state. This method may be called from the Paused or Active states.

Specified by:
destroyApp in class javax.microedition.midlet.MIDlet
Parameters:
u - If true, the MIDlet must cleanup and release all resources. If false the MIDlet may throw MIDletStateChangeException to indicate it does not want to be destroyed at this time.