| example.mmademo.BaseListMidlet
All known Subclasses: example.mmademo.SimpleTones, example.mmademo.SimplePlayer,
BaseListMidlet | abstract public class BaseListMidlet extends MIDlet implements CommandListener(Code) | | A base class for MIDLets that provide a list as display.
A history of displayed pages is maintained, to provide
user flow with automatic back functionality.
version: 1.4 |
Method Summary | |
public void | commandAction(Command c, Displayable s) | public void | destroyApp(boolean unconditional) Called when this MIDlet is destroyed. | final public void | exit() | abstract protected void | fillList(List list) Child classes must implement this to insert
the displayed list items and commands. | public Displayable | getCurrentDisplayable() | protected Display | getDisplay() | protected List | getList() | public Displayable | go(Displayable d) displays the given page. | public Displayable | goBack() | final public void | pauseApp() Called when this MIDlet is paused. | public Displayable | replaceCurrent(Displayable d) Replaces current displaying page with
the given one. | abstract protected void | selectCommand(int index) | final public void | startApp() Called when this MIDlet is started for the first
time, or when it returns from paused mode.
When it's started for the first time, the
firstTime flag is true and the list is
displayed. |
backCommand | protected Command backCommand(Code) | | |
exitCommand | protected Command exitCommand(Code) | | |
playCommand | protected Command playCommand(Code) | | |
selectCommand | protected Command selectCommand(Code) | | |
commandAction | public void commandAction(Command c, Displayable s)(Code) | | |
destroyApp | public void destroyApp(boolean unconditional)(Code) | | Called when this MIDlet is destroyed.
Subclasses should implement this for clean-up.
|
exit | final public void exit()(Code) | | Actively finish this MIDlet
|
fillList | abstract protected void fillList(List list)(Code) | | Child classes must implement this to insert
the displayed list items and commands.
|
getCurrentDisplayable | public Displayable getCurrentDisplayable()(Code) | | |
getDisplay | protected Display getDisplay()(Code) | | |
go | public Displayable go(Displayable d)(Code) | | displays the given page. The current one is added to the history.
|
goBack | public Displayable goBack()(Code) | | displays the last page that was displayed
|
pauseApp | final public void pauseApp()(Code) | | Called when this MIDlet is paused.
If the current Displayable
implements Utils.Interruptable, its pauseApp
method is called.
|
replaceCurrent | public Displayable replaceCurrent(Displayable d)(Code) | | Replaces current displaying page with
the given one. The current page is not added
to the history.
|
selectCommand | abstract protected void selectCommand(int index)(Code) | | Child classes must implement this in response to
a selection in the list
|
startApp | final public void startApp()(Code) | | Called when this MIDlet is started for the first
time, or when it returns from paused mode.
When it's started for the first time, the
firstTime flag is true and the list is
displayed. Otherwise, if the current Displayable
implements Utils.Interruptable, its resumeApp
method is called.
|
|
|