Java Reference
In-Depth Information
public void destroyApp(boolean unconditional) {
endNow = true;
if (player != null) {
player.close();
}
}
public void commandAction(Command c, Displayable s) {
if (c.getCommandType() == Command.EXIT) {
destroyApp(true);
notifyDestroyed();
} else
if (display.getCurrent() == viewerDisplayable) {
if (c == captureCommand) {
synchronized(this) {
this.notify();
}
}
} else
if (display.getCurrent() == choiceScreen ) {
if (c == selectCommand ) {
Form waitForm = new Form("Loading...");
display.setCurrent(waitForm);
int itemIndex = choiceScreen.getSelectedIndex();
switch(itemIndex) {
case 0:
mediaName = WAV_SOUND_PATH;
mediaType = WAV_SOUND_TYPE;
break;
case 1:
mediaName = MPG_MOVIE_PATH;
mediaType = MPG_MOVIE_TYPE;
break;
case 2:
mediaName = SVG_IMAGE_PATH;
mediaType = SVG_IMAGE_TYPE;
break;
case 3:
mediaName = CAP_VIDEO_PATH;
mediaType = CAP_VIDEO_TYPE;
break;
}
 
Search WWH ::




Custom Search