Opened 12 years ago

Closed 12 years ago

#372 closed enhancement (fixed)

org.opensha.sha.gui.infoTools.CalcProgressBar

Reported by: Ned Field Owned by: Kevin Milner
Priority: major Milestone: OpenSHA 1.3
Component: sha Version:
Keywords: Cc:

Description

We need to clean up and document how this works (e.g., what is, and is not ,shown after the various method calls). It looks like this was hacked at some time and never cleaned up.

We also need to add the option of showing and updating a string below the progress bar (to give details of an ongoing calculation).

Change History (1)

comment:1 Changed 12 years ago by Peter Powers

Resolution: fixed
Status: newclosed

I did a quick unobtrusive cleanup in [8456] with minimal refactoring and no method renaming:

  • Added constructor to supply a Component. If !null, dialog is centered on component, otherwise centered on screen.
  • Separated message and progress bar. This results in cases where the dialog behaves like an alert and the progress is never used. However "Update Forecast" can take a while and should leverage the progress bar if possible.
  • Added an alert(String) method. Ned, you can use this to display additional data below the progress bar as requested.
Note: See TracTickets for help on using tickets.