example
Class PropExample

java.lang.Object
  extended by javax.microedition.midlet.MIDlet
      extended by example.PropExample
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener

public class PropExample
extends javax.microedition.midlet.MIDlet
implements javax.microedition.lcdui.CommandListener

An example MIDlet shows the values of the system properties. Refer to the startApp, pauseApp, and destroyApp methods so see how it handles each requested transition.


Constructor Summary
PropExample()
           
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable s)
           
 void destroyApp(boolean unconditional)
          Destroy must cleanup everything.
 void pauseApp()
          Time to pause, free any space we don't need right now.
(package private)  java.lang.String showProp(java.lang.String prop)
          Show a property.
 void startApp()
          Show the value of the properties
 
Methods inherited from class javax.microedition.midlet.MIDlet
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropExample

public PropExample()
Method Detail

startApp

public void startApp()
Show the value of the properties

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

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable s)
Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener

showProp

java.lang.String showProp(java.lang.String prop)
Show a property.


pauseApp

public void pauseApp()
Time to pause, free any space we don't need right now.

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

destroyApp

public void destroyApp(boolean unconditional)
Destroy must cleanup everything.

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