Ticket #142 (closed defect: fixed)
adhoc incident's Unit # doesn't appear in Assigned Incidents panel
| Reported by: | jdalbey | Owned by: | |
|---|---|---|---|
| Priority: | Low | Milestone: | May 2019 Training |
| Component: | CAD Client | Version: | |
| Severity: | Minor | Keywords: | |
| Cc: |
Description
When an adhoc incident is added to a simulation run, it will appear in the Assigned Incidents pane of the CAD Client, but Unit/s column will be black.
The display code is in tmcsim.client.cadclientgui.screens.AssignedIncidents?.java in the initializeTable method, in the prepareRenderer Method. It appears the default foreground color is Black, which matches the background, giving this field an empty appearance. So it seems when the unit status is fetched by
ScreenManager.theCoordinator.getCadDataUnitStatus(unitname); that it doesn't have a valid value.
Specifying the unit at the start of ad hoc incidents xml file is not adequate; it must be included in the full script xml file to appear in the unit status panel and have a valid status.
This is not an urgent defect, because workaround: clicking on the row of the table will select that row, and the unit field becomes visible.
Since this is an ad-hoc incident, we can't really know in advance when the unit status changes (e.g., from ENRT to 10-97). It seems like it would be weird to assign it ENRT and that never changes.
I think the best strategy is to modify prepare renderer to have a "default" case that sets foreground color to white.

Fixed in r361