example.serverscript.demo
Class Demo

java.lang.Object
  extended by javax.microedition.midlet.MIDlet
      extended by example.serverscript.demo.Demo
All Implemented Interfaces:
java.lang.Runnable, javax.microedition.lcdui.CommandListener

public class Demo
extends javax.microedition.midlet.MIDlet
implements java.lang.Runnable, javax.microedition.lcdui.CommandListener

JSR 172 demo. Almost all screens displayed by the demo comes from server in xml format. It's up to server, what the demo will do.


Nested Class Summary
(package private)  class Demo.ParserHandler
          Parser handler class to parse screen information received from server.
 
Constructor Summary
Demo()
           
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
          Handle users commands.
 void destroyApp(boolean unconditional)
          Destroy midlet.
 void error(java.lang.String msg)
          Display error screen.
 void pauseApp()
          Pause the midlet.
 void run()
          Retrieving and parsing thread.
 void startApp()
          Initialize midlet data, service, parsers
 
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

Demo

public Demo()
Method Detail

startApp

public void startApp()
Initialize midlet data, service, parsers

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

pauseApp

public void pauseApp()
Pause the midlet.

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

destroyApp

public void destroyApp(boolean unconditional)
Destroy midlet.

Specified by:
destroyApp in class javax.microedition.midlet.MIDlet
Parameters:
unconditional - Unconditional flag.

run

public void run()
Retrieving and parsing thread.

Specified by:
run in interface java.lang.Runnable

error

public void error(java.lang.String msg)
Display error screen.


commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable d)
Handle users commands.

Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener