Package ucar.unidata.idv.ui
Class LoadBundleDialog
java.lang.Object
ucar.unidata.idv.ui.LoadBundleDialog
Class LoadDialog provides the dialog that shows the progress
of loading a bundle
- Version:
- $Revision: 1.20 $
- Author:
- IDV Development Team
-
Constructor Summary
ConstructorsConstructorDescriptionLoadBundleDialog(IdvPersistenceManager persistenceManager, String label) Create me -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataSource(DataSource dataSource) Add the decoded date source to the listvoidaddDisplayControl(DisplayControl displayControl) Add the decoded display to the listvoidappendMessage(String msg) Appen to the message label textvoidclear()Clear the list of data sources and displays.voiddispose()Overwrite dispose to stop the progress barGet the data sources that have been loaded up till nowGet the displays that have been loaded up till nowbooleanWas the laod cancelledbooleanokToRun()Has the user pressed cancel yetvoidsetMessage(String msg) Set the message label textvoidsetMessage1(String msg) Set the message label textvoidsetMessage2(String msg) Set the message label textvoidCreate and show the gui
-
Constructor Details
-
LoadBundleDialog
Create me- Parameters:
persistenceManager- A reference to the persistence manager in case we need itlabel- 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
Set the message label text- Parameters:
msg- The message
-
setMessage1
Set the message label text- Parameters:
msg- The message
-
setMessage2
Set the message label text- Parameters:
msg- The message
-
appendMessage
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
Add the decoded date source to the list- Parameters:
dataSource- The new data source
-
addDisplayControl
Add the decoded display to the list- Parameters:
displayControl- The new display
-
getDataSources
Get the data sources that have been loaded up till now- Returns:
- List of data sources
-
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
-