Class AccountIndexPage

java.lang.Object
  |
  +--menu.Page
        |
        +--menu.MenuPage
              |
              +--AccountIndexPage

public class AccountIndexPage
extends MenuPage

An AccountIndexPage holds lists of AccountPages. The user selects an AccountPage from the list for editing. This class extends MenuPage and adds the ability to recognize when the RMS store has changed and then rebuild the list of AccountPages.


Field Summary
static java.lang.String ACCOUNT_STORE
          the name of the RecordStore that we are keeping accounts in
 
Constructor Summary
AccountIndexPage(java.lang.String label, boolean hasExit)
          Initialize a new AccountIndexPage object using the supplied parameters and default values where needed.
AccountIndexPage(java.lang.String label, java.lang.String title, javax.microedition.lcdui.Image icon, boolean hasExit)
          Initialize a new AccountIndexPage object using the supplied parameters.
 
Method Summary
 javax.microedition.lcdui.Displayable getDisplayable()
          Return the Displayable object for this AccountIndexPage, completely filled in and ready to display.
 
Methods inherited from class menu.MenuPage
addChild, doCommandAction, getLinkedPage, removeAllChildren
 
Methods inherited from class menu.Page
getIcon, getLabel, getPrevious, getTitle, setPrevious
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCOUNT_STORE

public static final java.lang.String ACCOUNT_STORE
the name of the RecordStore that we are keeping accounts in

See Also:
Constant Field Values
Constructor Detail

AccountIndexPage

public AccountIndexPage(java.lang.String label,
                        java.lang.String title,
                        javax.microedition.lcdui.Image icon,
                        boolean hasExit)
Initialize a new AccountIndexPage 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 page should have an Exit command.

AccountIndexPage

public AccountIndexPage(java.lang.String label,
                        boolean hasExit)
Initialize a new AccountIndexPage 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 if this page is shown in another MenuPage).

Parameters:
label - short label for this page (as might be used in a menu)
hasExit - true if this page should have an Exit command.
Method Detail

getDisplayable

public javax.microedition.lcdui.Displayable getDisplayable()
Return the Displayable object for this AccountIndexPage, completely filled in and ready to display. If the RecordStore has changed since we last built the list of AccountPages, then we rebuild the list.

Overrides:
getDisplayable in class MenuPage
Returns:
the appropriate Displayable object for this Page