Class LoadBundleDialog

java.lang.Object
ucar.unidata.idv.ui.LoadBundleDialog

public class LoadBundleDialog extends Object
Class LoadDialog provides the dialog that shows the progress of loading a bundle
Version:
$Revision: 1.20 $
Author:
IDV Development Team
  • Constructor Details

    • LoadBundleDialog

      public LoadBundleDialog(IdvPersistenceManager persistenceManager, String label)
      Create me
      Parameters:
      persistenceManager - A reference to the persistence manager in case we need it
      label - The label to use in the dialog title
  • Method Details

    • clear

      public void clear()
      Clear the list of data sources and displays. We do this because there can be a retained reference to this dialog from Java
    • dispose

      public void dispose()
      Overwrite dispose to stop the progress bar
    • setMessage

      public void setMessage(String msg)
      Set the message label text
      Parameters:
      msg - The message
    • setMessage1

      public void setMessage1(String msg)
      Set the message label text
      Parameters:
      msg - The message
    • setMessage2

      public void setMessage2(String msg)
      Set the message label text
      Parameters:
      msg - The message
    • appendMessage

      public void appendMessage(String msg)
      Appen to the message label text
      Parameters:
      msg - The text to append
    • okToRun

      public boolean okToRun()
      Has the user pressed cancel yet
      Returns:
      Ok to keep loading
    • showDialog

      public void showDialog()
      Create and show the gui
    • addDataSource

      public void addDataSource(DataSource dataSource)
      Add the decoded date source to the list
      Parameters:
      dataSource - The new data source
    • addDisplayControl

      public void addDisplayControl(DisplayControl displayControl)
      Add the decoded display to the list
      Parameters:
      displayControl - The new display
    • getDataSources

      public List getDataSources()
      Get the data sources that have been loaded up till now
      Returns:
      List of data sources
    • getDisplayControls

      public List getDisplayControls()
      Get the displays that have been loaded up till now
      Returns:
      List of display controls
    • getShouldRemoveItems

      public boolean getShouldRemoveItems()
      Was the laod cancelled
      Returns:
      Should the loaded items be removed