Class mobileClient

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

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

mobileClient

Author:
Rune Romundstad

Field Summary
 java.lang.String[] choicesMade
           
 javax.microedition.lcdui.Image image
           
 java.lang.String mapString
           
 java.lang.String[] msg
           
 java.lang.String myPosX
           
 java.lang.String myPosY
           
 java.lang.String result
           
 
Constructor Summary
mobileClient()
          Constructor Sets up the choice form and the Command buttons.
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable displayable)
          commandAction listen on the command buttons.
 void destroyApp(boolean unconditional)
          destroyApp is also a required function.
 void exitMidlet()
          exitMidlet created to make a controlled closure for the application.
 void openBrowser(java.lang.String urlAddress)
          openBrowser gets a urlAddress as parameter, and opens the Internet browser with that url.
 void pauseApp()
          pauseApp is a required function to define.
 void startApp()
          startApp is a required function for a MIDlet.
 
Methods inherited from class javax.microedition.midlet.MIDlet
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapString

public java.lang.String mapString

msg

public java.lang.String[] msg

result

public java.lang.String result

image

public javax.microedition.lcdui.Image image

choicesMade

public java.lang.String[] choicesMade

myPosX

public java.lang.String myPosX

myPosY

public java.lang.String myPosY
Constructor Detail

mobileClient

public mobileClient()
Constructor Sets up the choice form and the Command buttons.

Method Detail

startApp

public void startApp()
startApp is a required function for a MIDlet. It takes the application out of the pause state and makes the connection to the server.

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

pauseApp

public void pauseApp()
pauseApp is a required function to define. It takes care of what that should happend when the application is for example waiting to start.

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

destroyApp

public void destroyApp(boolean unconditional)
destroyApp is also a required function. It is used to quit the application.

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

exitMidlet

public void exitMidlet()
exitMidlet created to make a controlled closure for the application. It calls the destroyApp function with the boolean value 'unconditional' set to true. It also calls the function 'notifyDestroyed' to tell the system it is finished.


commandAction

public void commandAction(javax.microedition.lcdui.Command command,
                          javax.microedition.lcdui.Displayable displayable)
commandAction listen on the command buttons. If pressing 'confirm' it reads the choices made in the menu and stores it for later use. Or if pressing 'exit' it calls the exitMidlet function.

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

openBrowser

public void openBrowser(java.lang.String urlAddress)
openBrowser gets a urlAddress as parameter, and opens the Internet browser with that url.

Parameters:
urlAddress - is the Internet address to the specific prospect.