AltosAscent ascent;
AltosDescent descent;
AltosLanded landed;
+ AltosSiteMap sitemap;
- private AltosStatusTable flightStatus;
+ private AltosFlightStatus flightStatus;
+ private JScrollPane flightInfoPane;
private AltosInfoTable flightInfo;
static final int tab_pad = 1;
}
cur_tab = tab;
}
- flightStatus.set(state);
+ flightStatus.show(state, crc_errors);
flightInfo.show(state, crc_errors);
+ sitemap.show(state, crc_errors);
}
+ public void set_exit_on_close() {
+ exit_on_close = true;
+ }
+
public AltosFlightUI(AltosVoice in_voice, AltosFlightReader in_reader, final int serial) {
- AltosPreferences.init(this);
+ AltosPreferences.init(this);
voice = in_voice;
reader = in_reader;
pane.add("Landed", landed);
flightInfo = new AltosInfoTable();
- pane.add("Table", new JScrollPane(flightInfo.box()));
+ flightInfoPane = new JScrollPane(flightInfo.box());
+ pane.add("Table", flightInfoPane);
+ sitemap = new AltosSiteMap();
+ pane.add("Site Map", sitemap);
+
vbox.add(pane);
this.add(vbox);