Package PamView.importData
Class ImportDataSystem<T>
java.lang.Object
PamView.importData.ImportDataSystem<T>
- Type Parameters:
T
- - the type of data loaded form the file. This could be a singles String, an ArrayList, ArrayList etc.
This class brings together the abstract classes and display componwenets which create a data import system for PAMGUARD. File dialogs, load bar dialogs etc. are all shared
by most data import tasks.
- Author:
- Jamie Macaulay
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Unable to load data file.static final int
The file is in the wrong format. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the name of this loading system.int
The number of units which have been loaded into the database or binary files.int
The total number of units that need loaded into the database or binary files.void
Set the name of this loading system.void
setTextProgress
(int N, int ofN, String name) Set progress in the load bars' text output.void
-
Field Details
-
NO_FILE_LOAD
public static final int NO_FILE_LOADUnable to load data file. Probably a bad file path.- See Also:
-
WRONG_FORMAT
public static final int WRONG_FORMATThe file is in the wrong format.- See Also:
-
-
Constructor Details
-
ImportDataSystem
-
-
Method Details
-
showImportDialog
public void showImportDialog() -
setTextProgress
Set progress in the load bars' text output.- Parameters:
N
- - number of units loadedofN
- - total number of units to loadname
- - name of the data unit that is being loaded.e.g. "NMEA units"
-
getName
Get the name of this loading system. e.g. Hydrophone Import- Returns:
- name of the laoding system.
-
setName
Set the name of this loading system. e.g. Hydrophone Import -
getNUnitsLoaded
public int getNUnitsLoaded()The number of units which have been loaded into the database or binary files.- Returns:
-
getTotalNUnits
public int getTotalNUnits()The total number of units that need loaded into the database or binary files.- Returns:
-