Beispiel #1
0
  private void setupScreen() {
    this.deleteAll();
    addTag = false;
    if (osmway == null) {
      this.append(new StringItem("No Data available", "..."));
      return;
    }
    this.append(new StringItem("Edited ", null));
    this.append(bearingArrow());
    this.append(new StringItem("    at:", osmway.getEditTime()));
    this.append(new StringItem("    by: ", osmway.getEditor()));

    Hashtable tags = osmway.getTags();
    if (tags == null) return;
    Enumeration keysEn = tags.keys();
    while (keysEn.hasMoreElements()) {
      String key = (String) keysEn.nextElement();
      Item i = new StringItem(key, (String) tags.get(key));
      i.addCommand(EDIT_CMD);
      i.addCommand(REMOVE_CMD);
      i.setItemCommandListener(this);
      this.append(i);
    }
  }