1 /*
2 * Created on Sep 13, 2004
3 *
4 */
5 package ubc.midp.mobilephoto.core.ui.screens;
6
7 import javax.microedition.lcdui.Choice;
8 import javax.microedition.lcdui.Command;
9 import javax.microedition.lcdui.List;
10
11
12 /**
13 * @author trevor
14 *
15 * This screen shows a listing of all photos for a selected photo album.
16 * This is the screen that contains most of the feature menu items.
17 * From this screen, a user can choose to view photos, add or delete photos,
18 * send photos to other users etc.
19 *
20 */
21 public class PhotoListScreen extends List {
22
23 //Add the core application commands always
24 public static final Command viewCommand = new Command("View", Command.ITEM, 1);
25 public static final Command addCommand = new Command("Add", Command.ITEM, 1);
26 public static final Command deleteCommand = new Command("Delete", Command.ITEM, 1);
27 public static final Command backCommand = new Command("Back", Command.BACK, 0);
28
29 public static final Command editLabelCommand = new Command("Edit Label", Command.ITEM, 1);
30
31 public static final Command sortCommand = new Command("Sort by Views", Command.ITEM, 1);
32
33 public static final Command favoriteCommand = new Command("Set Favorite", Command.ITEM, 1);
34 public static final Command viewFavoritesCommand = new Command("View Favorites", Command.ITEM, 1);
35
36 /**
37 * Constructor
38 */
39 public PhotoListScreen() {
40 super("Choose Items", Choice.IMPLICIT);
41 }
42
43 /**
44 * Initialize the menu items for this screen
45 */
46 public void initMenu() {
47
48 //Add the core application commands always
49 this.addCommand(viewCommand);
50 this.addCommand(addCommand);
51 this.addCommand(deleteCommand);
52
53 this.addCommand(editLabelCommand);
54
55 this.addCommand(sortCommand);
56
57 this.addCommand(favoriteCommand);
58
59 this.addCommand(backCommand);
60
61 //Add the optional feature menu items only if they are specified in
62 //the xxxBuild.properties file using the 'preprocessor.symbols' value
63
64
65 }
66
67 }
|