T
- - the type of data loaded form the file. This could be a singles String, an ArrayListpublic class ImportDataSystem<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
NO_FILE_LOAD
Unable to load data file.
|
static int |
WRONG_FORMAT
The file is in the wrong format.
|
Constructor and Description |
---|
ImportDataSystem(DataImport<T> dataImport) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get the name of this loading system.
|
int |
getNUnitsLoaded()
The number of units which have been loaded into the database or binary files.
|
int |
getTotalNUnits()
The total number of units that need loaded into the database or binary files.
|
void |
setName(java.lang.String name)
Set the name of this loading system.
|
void |
setTextProgress(int N,
int ofN,
java.lang.String name)
Set progress in the load bars' text output.
|
void |
showImportDialog() |
public static final int NO_FILE_LOAD
public static final int WRONG_FORMAT
public ImportDataSystem(DataImport<T> dataImport)
public void showImportDialog()
public void setTextProgress(int N, int ofN, java.lang.String name)
N
- - number of units loadedofN
- - total number of units to loadname
- - name of the data unit that is being loaded.e.g. "NMEA units"public java.lang.String getName()
public void setName(java.lang.String name)
public int getNUnitsLoaded()
public int getTotalNUnits()