Esempio n. 1
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);
  }
Esempio n. 2
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();
  }