Exemplo n.º 1
0
  /**
   * Gets the currently selected sector
   *
   * @return A Sector containing the information
   */
  public Sector getSelectedSector() {
    Sector info =
        new Sector(
            (String) ((Spinner) findViewById(R.id.systemList)).getSelectedItem(),
            (String) ((Spinner) findViewById(R.id.gridAlphaList)).getSelectedItem(),
            (String) ((Spinner) findViewById(R.id.gridNumList)).getSelectedItem(),
            -1,
            "");

    return data.populate(info);
  }
Exemplo n.º 2
0
 private void refreshCurrentSector() {
   currentSector = data.populate(getSelectedSector());
 }