Classes sorted by package:

core.comms
BaseMessaging

core.threads
BaseThread

core.ui
MainUIMidlet

core.ui.controller
AbstractController
AlbumController
BaseController
ControllerInterface
PhotoController
PhotoListController
PhotoViewController
ScreenSingleton

core.ui.datamodel
AlbumData
ImageAccessor
ImageData

core.ui.screens
AddPhotoToAlbum
AlbumListScreen
NewLabelScreen
PhotoListScreen
PhotoViewScreen
SplashScreen

core.util
Constants
ImageUtil

sms
NetworkScreen
SmsMessaging
SmsReceiverController
SmsReceiverThread
SmsSenderController
SmsSenderThread
  1 package ubc.midp.mobilephoto.core.ui.screens;
  2 
  3 import javax.microedition.lcdui.Command;
  4 import javax.microedition.lcdui.Form;
  5 import javax.microedition.lcdui.Image;
  6 import javax.microedition.lcdui.TextField;
  7 
  8 public class AddPhotoToAlbum extends Form {
  9   
 10   TextField labeltxt = new TextField("Photo label"""15, TextField.ANY);
 11   TextField photopathtxt = new TextField("Path"""20, TextField.ANY);
 12   
 13   Image image = null;
 14   
 15   
 16   Command ok;
 17   Command cancel;
 18 
 19   public AddPhotoToAlbum(String title) {
 20     super(title);
 21     this.append(labeltxt);
 22     this.append(photopathtxt);
 23     ok = new Command("Save Photo", Command.SCREEN, 0);
 24     cancel = new Command("Cancel", Command.EXIT, 1);
 25     this.addCommand(ok);
 26     this.addCommand(cancel);
 27   }
 28   
 29   public String getPhotoName(){
 30     return labeltxt.getString();
 31   }
 32   
 33   /**
 34    @param photoName
 35    */
 36   public void setPhotoName(String photoName) {
 37     labeltxt.setString(photoName);
 38   }
 39   
 40   public String getPath() {
 41     return photopathtxt.getString();
 42   }
 43 
 44   /**
 45    @param photoName
 46    */
 47   public void setLabePhotoPath(String label) {
 48     photopathtxt.setLabel(label);
 49   }
 50   public Image getImage() {
 51     return image;
 52   }
 53 
 54   public void setImage(Image image) {
 55     this.image = image;
 56   }
 57 }