| java.lang.Object example.sms.SMSSender
SMSSender | public class SMSSender implements CommandListener,Runnable(Code) | | Prompts for text and sends it via an SMS MessageConnection
|
Constructor Summary | |
public | SMSSender(String smsPort, Display display, Displayable backScreen, Displayable sendingScreen) Initialize the MIDlet with the current display object and
graphical components. |
backCommand | Command backCommand(Code) | | user interface command for going back to the previous screen
|
backScreen | Displayable backScreen(Code) | | Where to return if the user hits "Back"
|
destinationAddress | String destinationAddress(Code) | | The URL to send the message to
|
display | Display display(Code) | | Display to use.
|
messageBox | TextBox messageBox(Code) | | Area where the user enters a message to send
|
sendCommand | Command sendCommand(Code) | | user interface command for indicating Send request
|
sendingScreen | Displayable sendingScreen(Code) | | Displayed when a message is being sent
|
smsPort | String smsPort(Code) | | The port on which we send SMS messages
|
SMSSender | public SMSSender(String smsPort, Display display, Displayable backScreen, Displayable sendingScreen)(Code) | | Initialize the MIDlet with the current display object and
graphical components.
|
commandAction | public void commandAction(Command c, Displayable s)(Code) | | Respond to commands, including exit
Parameters: c - user interface command requested Parameters: s - screen object initiating the request |
promptAndSend | public void promptAndSend(String destinationAddress)(Code) | | Prompt for message and send it
|
run | public void run()(Code) | | Send the message. Called on a separate thread so we don't have
contention for the display
|
|
|