|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.SwingWorker
workerThreads.DataSheetCreationThread
public class DataSheetCreationThread
A thread that runs in the background to create a new datasheet.
This takes away this potentially long-running task from the EDT.
At the same time a ProgressMonitor is used to show progress, if required.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.SwingWorker |
---|
javax.swing.SwingWorker.StateValue |
Constructor Summary | |
---|---|
DataSheetCreationThread(java.lang.String pathToInputFile,
boolean dataHasHeaders,
Main mainWindow,
javax.swing.ProgressMonitor progressMonitor)
Instantiates a new data sheet creation thread. |
Method Summary | |
---|---|
java.lang.Object |
doInBackground()
|
Methods inherited from class javax.swing.SwingWorker |
---|
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, removePropertyChangeListener, run |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataSheetCreationThread(java.lang.String pathToInputFile, boolean dataHasHeaders, Main mainWindow, javax.swing.ProgressMonitor progressMonitor)
pathToInputFile
- The path to the input file to be importeddataHasHeaders
- Specifies, whether the data to be imported has headersmainWindow
- The main windowprogressMonitor
- The progress monitorMethod Detail |
---|
public java.lang.Object doInBackground()
doInBackground
in class javax.swing.SwingWorker
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |