|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TaskMonitor
Interface to receive notifications about the task progress (which will be running in a different SwingWorker thread).
| Field Summary | |
|---|---|
static int |
TASK_COMPLETE
|
static int |
TASK_CRASHED
|
static int |
TASK_IDLE
|
static int |
TASK_INTERRRUPTED
|
static int |
TASK_RUNNING
|
| Method Summary | |
|---|---|
void |
setFileName(java.lang.String fileName)
Set the current file name. |
void |
setNumFiles(int nFiles)
Set the total number of files to process (will be one if only loaded data are being processed). |
void |
setProgress(int global,
double loaded)
Set the overall task progress |
void |
setStatus(int taskStatus)
Set the task status. |
| Field Detail |
|---|
static final int TASK_IDLE
static final int TASK_RUNNING
static final int TASK_INTERRRUPTED
static final int TASK_COMPLETE
static final int TASK_CRASHED
| Method Detail |
|---|
void setStatus(int taskStatus)
taskStatus - void setNumFiles(int nFiles)
nFiles -
void setProgress(int global,
double loaded)
global - - global progress, i.e. number of files completed (0 - nFiles)loaded - - progress though data currently loaded (0 - 1.)void setFileName(java.lang.String fileName)
fileName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||