httptester
Class CurrencyFinder

java.lang.Object
  extended by httptester.CurrencyFinder
All Implemented Interfaces:
java.lang.Runnable, javax.microedition.lcdui.CommandListener

public class CurrencyFinder
extends java.lang.Object
implements java.lang.Runnable, javax.microedition.lcdui.CommandListener

Finds a the set value of given currency at a given bank. Implements the Runnable interface to compute in a new thread Implements the CommandListener interface to listen to the EXIT Command


Constructor Summary
CurrencyFinder(javax.microedition.midlet.MIDlet parent, javax.microedition.lcdui.Form screen)
          Constructor to initialize data.
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable display)
          Handles commandAction() event of CommandListener interface
 void run()
          Implents run() method of Runnable interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrencyFinder

public CurrencyFinder(javax.microedition.midlet.MIDlet parent,
                      javax.microedition.lcdui.Form screen)
Constructor to initialize data.

Method Detail

run

public void run()
Implents run() method of Runnable interface. Gets data from the internet connection and shows it.

Specified by:
run in interface java.lang.Runnable

commandAction

public void commandAction(javax.microedition.lcdui.Command command,
                          javax.microedition.lcdui.Displayable display)
Handles commandAction() event of CommandListener interface

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