appmain
Class ActiveMenuPage

java.lang.Object
  |
  +--menu.Page
        |
        +--menu.MenuPage
              |
              +--appmain.ActiveMenuPage
All Implemented Interfaces:
java.lang.Runnable

public class ActiveMenuPage
extends MenuPage
implements java.lang.Runnable

An ActiveMenuPage is used to hold lists of other Pages. The user selects a Page from the list and then the new Page is shown on the display.

ActiveMenuPage extends the basic MenuPage by reading the items to be displayed from a network url.

$Id: ActiveMenuPage.java,v 1.1 2003/01/21 01:15:07 finson Exp $


Nested Class Summary
 
Nested classes inherited from class menu.MenuPage
MenuPage.MenuPageScreen
 
Field Summary
 
Fields inherited from class menu.MenuPage
template
 
Fields inherited from class menu.Page
run, theThread
 
Constructor Summary
ActiveMenuPage(java.lang.String label, boolean hasExit, java.lang.String urlString)
          Initialize a new MenuPage object using the supplied parameters and default values where needed.
ActiveMenuPage(java.lang.String label, java.lang.String urlString)
          Initialize a new MenuPage object using the supplied parameters and default values where needed.
ActiveMenuPage(java.lang.String label, java.lang.String title, javax.microedition.lcdui.Image icon, boolean hasExit, java.lang.String urlString)
          Initialize a new MenuPage object using the supplied parameters.
 
Method Summary
 void run()
          Connect to the network and read the contents of the sourceURL.
 
Methods inherited from class menu.MenuPage
addChild, doCommandAction, getDisplayable, getLinkedPage, removeAllChildren
 
Methods inherited from class menu.Page
getIcon, getLabel, getPrevious, getTitle, setPrevious, start
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveMenuPage

public ActiveMenuPage(java.lang.String label,
                      java.lang.String title,
                      javax.microedition.lcdui.Image icon,
                      boolean hasExit,
                      java.lang.String urlString)
Initialize a new MenuPage object using the supplied parameters.

Parameters:
label - short label for this page (as might be used in a menu)
title - longer label for this page (as might be used in a screen title)
icon - small icon for this page (as might be used in a toolbar or menu
hasExit - true if this menu page should have an Exit command.
urlString - the URL from which to read the list of individual URLs

ActiveMenuPage

public ActiveMenuPage(java.lang.String label,
                      boolean hasExit,
                      java.lang.String urlString)
Initialize a new MenuPage object using the supplied parameters and default values where needed. The title defaults to null (meaning that the label will be used in its place). The icon defaults to null (meaning text only will be displayed).

Parameters:
label - short label for this page (as might be used in a menu)
hasExit - true if this menu page should have an Exit command.
urlString - the URL from which to read the list of individual URLs

ActiveMenuPage

public ActiveMenuPage(java.lang.String label,
                      java.lang.String urlString)
Initialize a new MenuPage object using the supplied parameters and default values where needed. The title defaults to null (meaning that the label will be used in its place). The icon defaults to null (meaning text only will be displayed). hasExit defaults to false, meaning that there is no Exit command

Parameters:
label - short label for this page (as might be used in a menu)
urlString - the URL from which to read the list of individual URLs
Method Detail

run

public void run()
Connect to the network and read the contents of the sourceURL.

Specified by:
run in interface java.lang.Runnable