public abstract class ProgressObserver
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ProgressObserver.ISubtask
Marker interface for a subtask.
|
static interface |
ProgressObserver.ITask
Marker interface for a task.
|
| Modifier and Type | Field and Description |
|---|---|
static ProgressObserver |
NO_OBSERVER
Defines an observer which does nothing.
|
static ProgressObserver.ISubtask |
NO_SUBTASK
Denotes the empty subtask.
|
| Constructor and Description |
|---|
ProgressObserver() |
| Modifier and Type | Method and Description |
|---|---|
void |
notifyEnd(ProgressObserver.ITask task)
Notifies about ending a (sub)task.
|
abstract void |
notifyEnd(ProgressObserver.ITask task,
ProgressObserver.ISubtask subtask)
Notifies about ending a (sub)task.
|
void |
notifyProgress(ProgressObserver.ITask task,
int step)
Notifies about processing a task or a subtask.
|
void |
notifyProgress(ProgressObserver.ITask task,
int step,
int max)
Notifies about processing a task or a subtask.
|
void |
notifyProgress(ProgressObserver.ITask task,
ProgressObserver.ISubtask subtask,
int step)
Notifies about processing a task or a subtask.
|
abstract void |
notifyProgress(ProgressObserver.ITask task,
ProgressObserver.ISubtask subtask,
int step,
int max)
Notifies about processing a task or a subtask.
|
void |
notifyStart(ProgressObserver.ITask task,
int max)
Notifies about starting a task.
|
abstract void |
notifyStart(ProgressObserver.ITask task,
ProgressObserver.ISubtask subtask,
int max)
Notifies about starting a (sub)task.
|
abstract ProgressObserver.ISubtask |
registerSubtask(java.lang.String subtask)
Registers a subtask to notify about processing progress.
|
abstract ProgressObserver.ITask |
registerTask(java.lang.String task)
Registers a task for notify about processing progress.
|
public static final ProgressObserver.ISubtask NO_SUBTASK
public static final ProgressObserver NO_OBSERVER
public abstract ProgressObserver.ITask registerTask(java.lang.String task)
task - the name of the taskpublic abstract ProgressObserver.ISubtask registerSubtask(java.lang.String subtask)
subtask - the name of the sub taskpublic void notifyStart(ProgressObserver.ITask task, int max)
task - the identification of task to notify about (initially
use registerTask(String) for registering a task)max - the intended maximum steps of the subtaskpublic abstract void notifyStart(ProgressObserver.ITask task, ProgressObserver.ISubtask subtask, int max)
task - the identification of task to notify about (initially
use registerTask(String) for registering a task)subtask - the subtask (may be NO_SUBTASK) (initially
use registerSubtask(String) for registering a sub task)max - the intended maximum steps of the subtaskpublic void notifyProgress(ProgressObserver.ITask task, int step, int max)
task - the identification of the task to notify about (initially
use registerTask(String) for registering a task)step - the current step in 0<=step<=maxmax - the maximum number of steps, ignored if negative and value from
start notification is used insteadpublic void notifyProgress(ProgressObserver.ITask task, int step)
task - the identification of the task to notify about (initially
use registerTask(String) for registering a task)step - the current step in 0<=step<=maxpublic void notifyProgress(ProgressObserver.ITask task, ProgressObserver.ISubtask subtask, int step)
task - the identification of the task to notify about (initially
use registerTask(String) for registering a task)subtask - the identification of the subtask (may be NO_SUBTASK, initially
use registerSubtask(String) for registering a sub task)step - the current step in 0<=step<=maxpublic abstract void notifyProgress(ProgressObserver.ITask task, ProgressObserver.ISubtask subtask, int step, int max)
task - the identification of the task to notify about (initially
use registerTask(String) for registering a task)subtask - the identification of the subtask (may be NO_SUBTASK, initially
use registerSubtask(String) for registering a sub task)step - the current step in 0<=step<=maxmax - the maximum number of steps, ignored if negative and value from
start notification is used insteadpublic void notifyEnd(ProgressObserver.ITask task)
registerTask(String) and registerSubtask(String).
This method shall implicitly unregister the given task and/or subtask.task - the identification of the task which ends (initially
use registerTask(String) for registering a task)public abstract void notifyEnd(ProgressObserver.ITask task, ProgressObserver.ISubtask subtask)
registerTask(String) and registerSubtask(String).
This method shall implicitly unregister the given task and/or subtask.task - the identification of the task which ends (initially
use registerTask(String) for registering a task)subtask - the identification of the subtask with task
(may be <NO_SUBTASK, if given, only the subtask is supposed to end, initially
use registerSubtask(String) for registering a sub task)Copyright © 2009 - 2018 SSE. All Rights Reserved.