java.lang.Runnable
public class TableLoadWorker
extends java.lang.Thread
Constructor | Description |
---|---|
TableLoadWorker(TableLoader loader,
TableLoadClient client) |
Constructs a TableLoadWorker with a default progress bar.
|
TableLoadWorker(TableLoader loader,
TableLoadClient client,
javax.swing.JProgressBar progBar) |
Constructs a TableLoadWorker with a given progress bar.
|
Modifier and Type | Method | Description |
---|---|---|
void |
cancel() |
Cancels the current load.
|
protected void |
finish(boolean cancelled) |
Tidies up following execution.
|
javax.swing.Action |
getCancelAction() |
Returns an action which will cancel the current load.
|
TableLoadClient |
getLoadClient() |
Returns the table load client used by this worker.
|
TableLoader |
getLoader() |
Returns the table loader used by this worker.
|
javax.swing.JProgressBar |
getProgressBar() |
Returns the progress bar controlled by this worker.
|
void |
run() |
Performs loading until completed or cancelled.
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public TableLoadWorker(TableLoader loader, TableLoadClient client, javax.swing.JProgressBar progBar)
loader
- table loader, supplies tablesclient
- table load client, consumes tables into a GUIprogBar
- progress bar to keep track of loadingpublic TableLoadWorker(TableLoader loader, TableLoadClient client)
loader
- table loader, supplies tablesclient
- table load client, consumes tables into a GUIpublic TableLoader getLoader()
public TableLoadClient getLoadClient()
public javax.swing.Action getCancelAction()
public javax.swing.JProgressBar getProgressBar()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void cancel()
protected void finish(boolean cancelled)
cancelled
- true iff cancel has been calledCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.