/** * 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); }
private void refreshCurrentSector() { currentSector = data.populate(getSelectedSector()); }