public class LoadCampaignDataHandler extends java.lang.Object implements CampaignDataLoaderListener
Constructor and Description |
---|
LoadCampaignDataHandler()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
campaignDataLoaded(int parsedFileCount,
int num_files,
int num_spectra,
int files_without_file_loader,
java.util.List<java.lang.String> file_errors,
boolean simple_delta_loading)
Handler for completion of loading.
|
void |
campaignDataLoadError(java.lang.String message)
Handler for errors during loading.
|
void |
campaignDataLoadException(java.lang.String message,
java.lang.Exception ex)
Handler for exceptions during loading.
|
void |
campaignDataLoadFileCount(int fileCount,
int spectrumCount)
Handler for file count updates.
|
void |
campaignDataLoading()
Handler for the beginning of the load.
|
void |
campaignDataLoadOperation(java.lang.String message)
Handler for an operation reported by the loader.
|
public void campaignDataLoadException(java.lang.String message, java.lang.Exception ex)
campaignDataLoadException
in interface CampaignDataLoaderListener
message
- the error messageex
- the exception that caused the errorpublic void campaignDataLoadError(java.lang.String message)
campaignDataLoadError
in interface CampaignDataLoaderListener
message
- the error messagepublic void campaignDataLoading()
campaignDataLoading
in interface CampaignDataLoaderListener
public void campaignDataLoaded(int parsedFileCount, int num_files, int num_spectra, int files_without_file_loader, java.util.List<java.lang.String> file_errors, boolean simple_delta_loading)
campaignDataLoaded
in interface CampaignDataLoaderListener
parsedFileCount
- the total number of files parsed so farnum_files
- the number of filesnum_spectra
- the number of spectrafiles_without_file_loader
- lists how many files were encountered where no spectral file loader could be foundfile_errors
- a list of files that contained errorssimple_delta_loading
- loading based on file time stampspublic void campaignDataLoadFileCount(int fileCount, int spectrumCount)
campaignDataLoadFileCount
in interface CampaignDataLoaderListener
fileCount
- the new value of the file counterspectrumCount
- the new value of the spectrum counterpublic void campaignDataLoadOperation(java.lang.String message)
campaignDataLoadOperation
in interface CampaignDataLoaderListener
message
- a message describing the current operation