Class ClientGui

java.lang.Object
  extended byjavax.microedition.midlet.MIDlet
      extended byClientGui
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener

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

The ClientGui class is the front-end GUI of the client application. It is handling all the user interaction and setting up connections to the Service Provider and the Supplicant. The connections to the different components are set up by the inner thread classes

Since:
May 4, 2007
Author:
Håvard Holje

Nested Class Summary
(package private)  class ClientGui.ConnectionThread
          The ConnectionThread class connects to Service Provider, receives a redirect, interprets and sets up a connection to the local Supplicant.
(package private)  class ClientGui.ServiceProviderClient
          The ServiceProviderClient class is setting up a connection to the Service Provider, when the user is auhenticated by the Supplicant.
(package private)  class ClientGui.SupplicantClient
          The SupplicantClient class is setting up the connection to the local Supplicant.
 
Field Summary
private  javax.microedition.lcdui.Form aForm
           
private  javax.microedition.lcdui.Command balanceCommand
           
private  javax.microedition.lcdui.Form banking
           
private  javax.microedition.lcdui.Command connectCommand
           
private  ClientGui.ConnectionThread connectionThread
           
private  javax.microedition.lcdui.Display display
           
private  javax.microedition.lcdui.Command exitCommand
           
private  javax.microedition.io.HttpConnection httpConn
           
private  java.io.InputStream is
           
private  javax.microedition.lcdui.TextField pin
           
private  javax.microedition.lcdui.Form pinForm
           
private  java.lang.String sessionID
           
private  ClientGui.ServiceProviderClient spClient
           
private  javax.microedition.lcdui.Command submitCommand
           
private  ClientGui.SupplicantClient supplicantClient
           
private  java.lang.String URL
           
 
Fields inherited from class javax.microedition.midlet.MIDlet
 
Constructor Summary
ClientGui()
          The constructor
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable s)
          This is where the commands are handeled
 void destroyApp(boolean unconditional)
           
 void pauseApp()
           
private  void showPinForm(javax.microedition.lcdui.Display display)
          Changes the current display to the "PIN input form"
 void startApp()
          Standard method required on J2ME MIDlets This is the method starting up the application from the AMS
 
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
 

Field Detail

exitCommand

private javax.microedition.lcdui.Command exitCommand

submitCommand

private javax.microedition.lcdui.Command submitCommand

connectCommand

private javax.microedition.lcdui.Command connectCommand

balanceCommand

private javax.microedition.lcdui.Command balanceCommand

display

private javax.microedition.lcdui.Display display

aForm

private javax.microedition.lcdui.Form aForm

pinForm

private javax.microedition.lcdui.Form pinForm

banking

private javax.microedition.lcdui.Form banking

pin

private javax.microedition.lcdui.TextField pin

is

private java.io.InputStream is

httpConn

private javax.microedition.io.HttpConnection httpConn

spClient

private ClientGui.ServiceProviderClient spClient

connectionThread

private ClientGui.ConnectionThread connectionThread

supplicantClient

private ClientGui.SupplicantClient supplicantClient

sessionID

private java.lang.String sessionID

URL

private java.lang.String URL
Constructor Detail

ClientGui

public ClientGui()
The constructor

Method Detail

startApp

public void startApp()
Standard method required on J2ME MIDlets This is the method starting up the application from the AMS


pauseApp

public void pauseApp()

destroyApp

public void destroyApp(boolean unconditional)

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable s)
This is where the commands are handeled

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

showPinForm

private void showPinForm(javax.microedition.lcdui.Display display)
Changes the current display to the "PIN input form"

Parameters:
display -