Methods Summary |
---|
public void | commandAction(Command c, Displayable s)
if (c == exitCommand) {
destroyApp(false);
notifyDestroyed();
} else if ((s == theList && c == List.SELECT_COMMAND) || c == playCommand) {
int i = theList.getSelectedIndex();
soundObj.setIndex(i);
display.setCurrent(soundObj);
soundObj.serviceRepaints();
soundObj.playSound();
}
|
public void | destroyApp(boolean unconditional)Destroy must cleanup everything not handled by the garbage collector.
if ( soundObj != null )
soundObj.stopSound();
soundObj = null;
|
public static example.audiodemo.MixTest | getInstance()
return instance;
|
public static List | getList()
return theList;
|
public void | pauseApp()Pause is a no-op since there are no background activities or
record stores that need to be closed.
|
public void | startApp()
if (soundObj != null ) {
soundObj.stopSound();
} else {
soundObj = new MixCanvas(display);
}
display.setCurrent(theList);
|