ucar.unidata.idv.ui
Class LoadBundleDialog

java.lang.Object
  extended by 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 Summary
LoadBundleDialog(IdvPersistenceManager persistenceManager, String label)
          Create me
 
Method Summary
 void addDataSource(DataSource dataSource)
          Add the decoded date source to the list
 void addDisplayControl(DisplayControl displayControl)
          Add the decoded display to the list
 void appendMessage(String msg)
          Appen to the message label text
 void clear()
          Clear the list of data sources and displays.
 void dispose()
          Overwrite dispose to stop the progress bar
 List getDataSources()
          Get the data sources that have been loaded up till now
 List getDisplayControls()
          Get the displays that have been loaded up till now
 boolean getShouldRemoveItems()
          Was the laod cancelled
 boolean okToRun()
          Has the user pressed cancel yet
 void setMessage(String msg)
          Set the message label text
 void setMessage1(String msg)
          Set the message label text
 void setMessage2(String msg)
          Set the message label text
 void showDialog()
          Create and show the gui
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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