|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.midlet.MIDlet
example.sms.SMSSend
public class SMSSend
An example MIDlet to send text via an SMS MessageConnection
Field Summary | |
---|---|
(package private) javax.microedition.lcdui.TextBox |
destinationAddressBox
Area where the user enters the phone number to send the message to |
(package private) javax.microedition.lcdui.Display |
display
current display. |
(package private) javax.microedition.lcdui.Alert |
errorMessageAlert
Error message displayed when an invalid phone number is entered |
(package private) javax.microedition.lcdui.Command |
exitCommand
user interface command for indicating Exit request. |
(package private) javax.microedition.lcdui.Command |
okCommand
user interface command for proceeding to the next screen |
(package private) javax.microedition.lcdui.Displayable |
resumeScreen
The last visible screen when we paused |
(package private) SMSSender |
sender
Prompts for and sends the text message |
(package private) javax.microedition.lcdui.Alert |
sendingMessageAlert
Alert that is displayed when a message is being sent |
(package private) java.lang.String |
smsPort
The port on which we send SMS messages |
Constructor Summary | |
---|---|
SMSSend()
Initialize the MIDlet with the current display object and graphical components. |
Method Summary | |
---|---|
void |
commandAction(javax.microedition.lcdui.Command c,
javax.microedition.lcdui.Displayable s)
Respond to commands, including exit |
void |
destroyApp(boolean unconditional)
Destroy must cleanup everything. |
void |
pauseApp()
Remember what screen is showing |
void |
startApp()
startApp should return immediately to keep the dispatcher from hanging. |
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 |
---|
javax.microedition.lcdui.Command exitCommand
javax.microedition.lcdui.Command okCommand
javax.microedition.lcdui.Display display
java.lang.String smsPort
javax.microedition.lcdui.TextBox destinationAddressBox
javax.microedition.lcdui.Alert errorMessageAlert
javax.microedition.lcdui.Alert sendingMessageAlert
SMSSender sender
javax.microedition.lcdui.Displayable resumeScreen
Constructor Detail |
---|
public SMSSend()
Method Detail |
---|
public void startApp()
startApp
in class javax.microedition.midlet.MIDlet
public void pauseApp()
pauseApp
in class javax.microedition.midlet.MIDlet
public void destroyApp(boolean unconditional)
destroyApp
in class javax.microedition.midlet.MIDlet
unconditional
- true if a forced shutdown was requestedpublic void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable s)
commandAction
in interface javax.microedition.lcdui.CommandListener
c
- user interface command requesteds
- screen object initiating the request
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |