uk.co.silentsoftware.ui.views
Class SendTextMessageView

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Screen
          extended by javax.microedition.lcdui.Form
              extended by uk.co.silentsoftware.ui.views.AbstractFormView
                  extended by uk.co.silentsoftware.ui.views.AbstractTextMessageView
                      extended by uk.co.silentsoftware.ui.views.SendTextMessageView
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener, GPSDataView

public class SendTextMessageView
extends AbstractTextMessageView
implements GPSDataView

The view shown when the user wants to send their location or request a location from another user


Constructor Summary
SendTextMessageView(javax.microedition.midlet.MIDlet m)
           
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
          Command handler to send the location to the specified phone number, or request the location from another user
 void process(javax.microedition.location.Location loc)
          Stores the last fix from the GPS reader for sending
 void process(java.lang.String data)
          Stores as raw NMEA data the last fix from the GPS reader for sending
 void setMessage(boolean request)
          Sets the message to show on this view - true if the view is to show that the user is requesting the location from another user
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SendTextMessageView

public SendTextMessageView(javax.microedition.midlet.MIDlet m)
Method Detail

process

public void process(java.lang.String data)
Stores as raw NMEA data the last fix from the GPS reader for sending

Specified by:
process in interface GPSDataView

process

public void process(javax.microedition.location.Location loc)
Stores the last fix from the GPS reader for sending

Specified by:
process in interface GPSDataView

setMessage

public void setMessage(boolean request)
Sets the message to show on this view - true if the view is to show that the user is requesting the location from another user

Parameters:
request -

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable d)
Command handler to send the location to the specified phone number, or request the location from another user

Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener
Overrides:
commandAction in class AbstractFormView