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   // #ifdef includeSmsFeature
 14   Image image = null;
 15   //#endif  
 16   
 17   
 18   Command ok;
 19   Command cancel;
 20 
 21   public AddPhotoToAlbum(String title) {
 22     super(title);
 23     this.append(labeltxt);
 24     this.append(photopathtxt);
 25     ok = new Command("Save Photo", Command.SCREEN, 0);
 26     cancel = new Command("Cancel", Command.EXIT, 1);
 27     this.addCommand(ok);
 28     this.addCommand(cancel);
 29   }
 30   
 31   public String getPhotoName(){
 32     return labeltxt.getString();
 33   }
 34   
 35   /**
 36    * [EF] Added in order to reuse this screen in the Copy Photo functionality
 37    @param photoName
 38    */
 39   public void setPhotoName(String photoName) {
 40     labeltxt.setString(photoName);
 41   }
 42   
 43   public String getPath() {
 44     return photopathtxt.getString();
 45   }
 46 
 47   /**
 48    * [EF] Added in order to reuse this screen in the Copy Photo functionality
 49    @param photoName
 50    */
 51   public void setLabePhotoPath(String label) {
 52     photopathtxt.setLabel(label);
 53   }
 54   // #ifdef includeSmsFeature
 55   public Image getImage() {
 56     return image;
 57   }
 58 
 59   public void setImage(Image image) {
 60     this.image = image;
 61   }
 62   //#endif
 63 }