|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--menu.Page
A Page is the basic element in a hierarchy of displayable pages. This abstract class is extended to define specific types of behavior by specific types of pages.
Constructor Summary | |
Page(java.lang.String label,
java.lang.String title,
javax.microedition.lcdui.Image icon)
Initialize a new Page object using the supplied parameters. |
Method Summary | |
abstract 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. |
abstract javax.microedition.lcdui.Displayable |
getDisplayable()
Return the Displayable object for this Page, completely filled in and ready to display. |
javax.microedition.lcdui.Image |
getIcon()
Return Page icon. |
java.lang.String |
getLabel()
Return Page label. |
Page |
getLinkedPage()
Return the Page that this Page feels should be the next page to be displayed. |
Page |
getPrevious()
Return pointer to previous page visited. |
java.lang.String |
getTitle()
Return Page title. |
void |
setPrevious(Page p)
Set pointer to previous page visited. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Page(java.lang.String label, java.lang.String title, javax.microedition.lcdui.Image icon)
label
- short label for this page (as might be used in
a menu). Must not be null.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.Method Detail |
public abstract javax.microedition.lcdui.Displayable getDisplayable()
public abstract int doCommandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
c
- a Command object identifying the command.d
- the Displayable on which this event has occurred
public Page getLinkedPage()
java.lang.IllegalStateException
- this implementation always
throws this exceptionpublic java.lang.String getLabel()
public java.lang.String getTitle()
public javax.microedition.lcdui.Image getIcon()
public Page getPrevious()
public void setPrevious(Page p)
p
- previous Page
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |