net.landspurg.util
Class SendRecommendation

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Screen
          extended by javax.microedition.lcdui.Form
              extended by net.landspurg.util.SendRecommendation
All Implemented Interfaces:
java.lang.Runnable, javax.microedition.lcdui.CommandListener

public class SendRecommendation
extends javax.microedition.lcdui.Form
implements javax.microedition.lcdui.CommandListener, java.lang.Runnable

Purpose of this class is to send a text SMS as a recommendation to somebody else.
Usage: create the new SendRecommendation() object...
nickName can be left to null.
Note that this class is asynchrounous, as it will return after creation, but will set up the original display after either an OK or a CANCEL from the user.


Field Summary
 java.lang.String m_nameS
          This will contains the nickname put by the user, if any...Can be null
 java.lang.String m_phoneS
          The number put by the user
 
Constructor Summary
SendRecommendation(javax.microedition.lcdui.Display d, java.lang.String nickName, java.lang.String inUrl, int id)
          Instanciante et display the form....
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
           
 void run()
           
 
Methods inherited from class javax.microedition.lcdui.Form
append, append, append, delete, deleteAll, get, getHeight, getWidth, insert, set, setItemStateListener, size
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, getTicker, getTitle, isShown, removeCommand, setCommandListener, setTicker, setTitle, sizeChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_nameS

public java.lang.String m_nameS
This will contains the nickname put by the user, if any...Can be null


m_phoneS

public java.lang.String m_phoneS
The number put by the user

Constructor Detail

SendRecommendation

public SendRecommendation(javax.microedition.lcdui.Display d,
                          java.lang.String nickName,
                          java.lang.String inUrl,
                          int id)
Instanciante et display the form....

Parameters:
d - : current display
nickName - : nickName if now of the user
id - : id of the user (if know, it will be put in the link)
Method Detail

commandAction

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

run

public void run()
Specified by:
run in interface java.lang.Runnable