Example #1
1
  private void LiveCameras() {
    LiveCameras = new List("Live Cameras", Choice.IMPLICIT);
    viewImage = new Command("view", Command.OK, 1);
    camList = new Command("back", Command.BACK, 2);
    refreshList = new Command("refresh List", Command.OK, 0);

    LiveCameras.addCommand(viewImage);
    LiveCameras.addCommand(camList);
    LiveCameras.addCommand(refreshList);
    LiveCameras.setCommandListener(this);

    new Thread() {
      public void run() {
        controller.showProgressBar();
      }
    }.start();
    refreshCamList();
  }
Example #2
1
  public void initialize() {
    Stages = new List("Stages ", List.IMPLICIT);
    // Stages.append(arg0, append());append()
    backToNo = new Command("back", Command.BACK, 1);
    MapStages = new Command("view in Map", Command.OK, 3);
    showBuses = new Command("Buses through this stage", Command.OK, 2);
    Stages.addCommand(backToNo);

    Stages.setCommandListener(this);

    busesNearMe = new List("Buses ", List.IMPLICIT);
    backToPlaces = new Command("back", Command.BACK, 1);
    showStages = new Command("view stages ", Command.BACK, 1);
    busesNearMe.addCommand(showStages);
    busesNearMe.addCommand(viewBusPosition);
    busesNearMe.addCommand(backToPlaces);
    busesNearMe.setCommandListener(this);
  }
Example #3
1
  public void startApp() {
    // Create Record Store
    try {
      rs = RecordStore.openRecordStore("myrs", true);
    } catch (RecordStoreException e) {
    }

    dsp = Display.getDisplay(this);
    listMenu.setCommandListener(this);
    listMenu.addCommand(cmdExit);
    dsp.setCurrent(listMenu);
  }