| example.http.PushExample
PushExample | public class PushExample extends MIDlet implements CommandListener(Code) | | An example MIDlet to fetch a page using an HttpConnection.
Refer to the startApp, pauseApp, and destroyApp
methods so see how it handles each requested transition.
|
Constructor Summary | |
public | PushExample() initialize the MIDlet with the current display object. |
Method Summary | |
public void | commandAction(Command c, Displayable s) | public void | destroyApp(boolean unconditional) Destroy must cleanup everything. | public void | pauseApp() Pause signals the thread to stop by clearing the thread field. | void | setupList() Check the attributes in the descriptor that identify
url's and titles and initialize the lists of urls
and urlList. | public void | startApp() Start creates the thread to do the timing. |
DefaultTimeout | final static int DefaultTimeout(Code) | | |
alert | Alert alert(Code) | | user interface alert component.
|
display | Display display(Code) | | current display.
|
exitCommand | Command exitCommand(Code) | | user interface command for indicating Exit request.
|
imageLoaded | boolean imageLoaded(Code) | | |
newsHoundImage | Image newsHoundImage(Code) | | |
urlList | List urlList(Code) | | user interface component containing a list of URLs
|
PushExample | public PushExample()(Code) | | initialize the MIDlet with the current display object.
|
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 |
destroyApp | public void destroyApp(boolean unconditional)(Code) | | Destroy must cleanup everything. The thread is signaled
to stop and no result is produced.
Parameters: unconditional - true if a forced shutdown was requested |
pauseApp | public void pauseApp()(Code) | | Pause signals the thread to stop by clearing the thread field.
If stopped before done with the iterations it will
be restarted from scratch later.
|
setupList | void setupList()(Code) | | Check the attributes in the descriptor that identify
url's and titles and initialize the lists of urls
and urlList.
The attributes are named "ViewTitle-n" and "ViewURL-n".
The value "n" must start at "1" and increment by 1.
|
startApp | public void startApp()(Code) | | Start creates the thread to do the timing.
It should return immediately to keep the dispatcher
from hanging.
|
|
|