public interface SimpleTaskStatus extends TaskStatus
Modifier and Type | Field and Description |
---|---|
static SimpleTaskStatus |
FAKE_STATUS |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Used by the task to inform that it has terminated with errors.
|
static void |
abort(SimpleTaskStatus status) |
void |
add()
Add this TaskStatus to the TaskStatusManager.
|
void |
cancel()
Used by the task to inform that it has terminated cancelled by the user
or another task.
|
static void |
cancel(SimpleTaskStatus status) |
static SimpleTaskStatus |
get(SimpleTaskStatus status) |
boolean |
getAutoRemove()
Return the autoremove value of this TaskStatus.
|
long |
getCurValue() |
void |
incrementCurrentValue() |
static void |
incrementCurrentValue(SimpleTaskStatus status) |
static boolean |
isCancellationRequested(SimpleTaskStatus status) |
static void |
message(SimpleTaskStatus status,
java.lang.String message) |
void |
message(java.lang.String message)
Used by the task to set a message associated to the current action of the
task
|
void |
pop()
Este metodo esta pensado para restaurar los ultimos valores de progreso y
mensaje que se guardaron invocando al metodo
push() . |
static void |
pop(SimpleTaskStatus status) |
void |
push()
Este metodo guarda los valores de progreso y el mensaje de la tarea para
ser restaurados posteriormente invocando al metodo
pop() . |
static void |
push(SimpleTaskStatus status) |
void |
remove()
Remove this TaskStatus from the TaskStatusManager
|
void |
restart() |
void |
setAutoremove(boolean autoremove)
Used by the task to inform that this TaskStatus is removed from the
manager automatically when the task is terminated and the manager need.
|
void |
setCancellable(boolean cancellable)
Used by the task to inform that this task es cacellable.
|
void |
setCurValue(long value)
Used by the task to set the current step of the task.
|
static void |
setCurValue(SimpleTaskStatus status,
long value) |
void |
setIndeterminate()
Set the estatus of task to inteterminate.
|
static void |
setIndeterminate(SimpleTaskStatus status) |
void |
setRangeOfValues(long min,
long max)
Used by the task to set the value for min and max steps of the task.
|
static void |
setRangeOfValues(SimpleTaskStatus status,
long min,
long max) |
void |
setTitle(java.lang.String title)
Used by the task to set the title associated to the task.
|
void |
setTittle(java.lang.String tittle)
Deprecated.
@see
setTitle(String) |
void |
terminate()
Used by the task to inform that it has terminated without errors.
|
static void |
terminate(SimpleTaskStatus status) |
getCode, getCompleted, getLabel, getLastModification, getManager, getMessage, getProgressLabel, getTitle, isAborted, isCancellable, isCancelled, isIndeterminate, isRunning
cancelRequest, isCancellationRequested
addObserver, deleteObserver, deleteObservers
static final SimpleTaskStatus FAKE_STATUS
static void cancel(SimpleTaskStatus status)
static void message(SimpleTaskStatus status, java.lang.String message)
static void setRangeOfValues(SimpleTaskStatus status, long min, long max)
static void setCurValue(SimpleTaskStatus status, long value)
static void incrementCurrentValue(SimpleTaskStatus status)
static void terminate(SimpleTaskStatus status)
static void abort(SimpleTaskStatus status)
static void pop(SimpleTaskStatus status)
static void setIndeterminate(SimpleTaskStatus status)
static void push(SimpleTaskStatus status)
static boolean isCancellationRequested(SimpleTaskStatus status)
static SimpleTaskStatus get(SimpleTaskStatus status)
void setTittle(java.lang.String tittle)
setTitle(String)
tittle
- void setTitle(java.lang.String title)
title
- void message(java.lang.String message)
message
- void setRangeOfValues(long min, long max)
min
- max
- void setCurValue(long value)
value
- setRangeOfValues
void incrementCurrentValue()
void terminate()
void cancel()
void abort()
void remove()
void add()
void setCancellable(boolean cancellable)
cancellable
- void setAutoremove(boolean autoremove)
autoremove
- boolean getAutoRemove()
void setIndeterminate()
void push()
pop()
.
Los metodos push()
y pop()
estan pensado para gestionar
subtareas dentro de un tareas, de forma que las subtareas puedan tener su
propio progreso y mensaje mientras se estan ejecutando.#pop()}
void pop()
push()
.#push()}
void restart()
long getCurValue()