Esempio n. 1
1
  public List getL_vars() {
    if (l_vars == null) {

      l_vars =
          new List("\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435", Choice.IMPLICIT);
      l_vars.addCommand(getC_canvas());
      l_vars.addCommand(getC_insert());
      l_vars.addCommand(getC_delvar());
      l_vars.setCommandListener(this);
    }
    return l_vars;
  }
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();
  }
Esempio n. 3
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);
  }
  public void commandAction(Command command, Item item) {
    if (recentList.isEmpty()) return;
    parentView = display.getCurrent();

    cmdBack = new Command(SR.MS_BACK, Command.BACK, 99);
    cmdSelect = new Command(SR.MS_SELECT, Command.OK, 1);
    cmdClear = new Command(SR.MS_CLEAR, command.SCREEN, 2);

    list = new List(label, List.IMPLICIT);
    list.addCommand(cmdBack);
    list.addCommand(cmdClear);
    list.setSelectCommand(cmdSelect);

    for (Enumeration e = recentList.elements(); e.hasMoreElements(); )
      list.append((String) e.nextElement(), null);

    list.setCommandListener(this);
    display.setCurrent(list);
  }
Esempio n. 5
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);
  }
Esempio n. 6
1
  public List getL_history() {
    if (l_history == null) {

      l_history =
          new List(
              "\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u0432\u044B\u0447\u0438\u0441\u043B\u0435\u043D\u0438\u0439",
              Choice.IMPLICIT);
      l_history.addCommand(getC_canvas());
      l_history.addCommand(getC_insert());
      l_history.setCommandListener(this);
    }
    return l_history;
  }
Esempio n. 7
1
  public void startApp() {
    if (mDisplay == null) {
      mDisplay = Display.getDisplay(this);
    }

    if (mMenu == null) {
      mMenu = new List("MohairMIDlet", List.IMPLICIT);
      mMenu.append(kQuerySlots, null);
      mMenu.append(kSignTest, null);

      mBackCommand = new Command("Back", Command.BACK, 0);
      mExitCommand = new Command("Exit", Command.EXIT, 0);

      mMenu.addCommand(mExitCommand);
      mMenu.setCommandListener(this);
    }

    mDisplay.setCurrent(mMenu);
  }