Class AccountPage

java.lang.Object
  |
  +--menu.Page
        |
        +--AccountPage

public class AccountPage
extends Page

An AccountPage is used to edit a UserAccount object. The user edits the fields of the object and then the inputs are stored in the associated user data object.


Constructor Summary
AccountPage(java.lang.String label, StorableObject obj)
          Initialize a new AccountPage object using the supplied parameters and default values where needed.
AccountPage(java.lang.String label, java.lang.String title, javax.microedition.lcdui.Image icon, StorableObject obj)
          Initialize a new AccountPage object using the supplied parameters.
 
Method Summary
 int doCommandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
          Process the user command and return an integer value telling the PageMgr what to do next.
 javax.microedition.lcdui.Displayable getDisplayable()
          Return the Displayable object for this AccountPage, completely filled in and ready to display.
 
Methods inherited from class menu.Page
getIcon, getLabel, getLinkedPage, getPrevious, getTitle, setPrevious
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountPage

public AccountPage(java.lang.String label,
                   java.lang.String title,
                   javax.microedition.lcdui.Image icon,
                   StorableObject obj)
Initialize a new AccountPage 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
obj - an instance of StorableObject. The StorableObject contains a user data reference that points to an instance of a UserAccount.

AccountPage

public AccountPage(java.lang.String label,
                   StorableObject obj)
Initialize a new AccountPage 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)
obj - an instance of StorableObject. The StorableObject contains a user data reference that points to an instance of a UserAccount.
Method Detail

doCommandAction

public int doCommandAction(javax.microedition.lcdui.Command c,
                           javax.microedition.lcdui.Displayable d)
Process the user command and return an integer value telling the PageMgr what to do next. This method handles the details of a command for a page, while the commandAction method in the PageMgr handles the general responsibility of switching displays.

Specified by:
doCommandAction in class Page
Parameters:
c - a Command object identifying the command.
d - the Displayable on which this event has occurred
Returns:
a pageAction code, selected from the public fields defined by PageMgr.

getDisplayable

public javax.microedition.lcdui.Displayable getDisplayable()
Return the Displayable object for this AccountPage, completely filled in and ready to display.

Specified by:
getDisplayable in class Page
Returns:
the appropriate Displayable object for this Page