public interface SimpleTaskStatus extends TaskStatus
Modifier and Type | Method and Description |
---|---|
void |
abort()
Used by the task to inform that it has terminated with errors.
|
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.
|
boolean |
getAutoRemove()
Return the autoremove value of this TaskStatus.
|
void |
message(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() . |
void |
push()
Este metodo guarda los valores de progreso y el mensaje de la tarea
para ser restaurados posteriormente invocando al metodo
pop() . |
void |
remove()
Remove this TaskStatus from the TaskStatusManager
|
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.
|
void |
setIndeterminate()
Set the estatus of task to inteterminate.
|
void |
setRangeOfValues(long min,
long max)
Used by the task to set the value for min and max steps of the task.
|
void |
setTitle(String title)
Used by the task to set the title associated to the task.
|
void |
setTittle(String tittle)
Deprecated.
@see
setTitle(String) |
void |
terminate()
Used by the task to inform that it has terminated without errors.
|
getCode, getCompleted, getLabel, getLastModification, getManager, getTitle, isAborted, isCancellable, isCancelled, isIndeterminate, isRunning
cancelRequest, isCancellationRequested
addObserver, deleteObserver, deleteObservers
void setTittle(String tittle)
setTitle(String)
tittle
- void setTitle(String title)
title
- void message(String message)
message
- void setRangeOfValues(long min, long max)
min
- max
- void setCurValue(long value)
value
- setRangeOfValues
void terminate()
void cancel()
void abort()
void remove()
void add()
void setCancellable(boolean cancellable)
cancellable
- void setAutoremove(boolean autoremove)
autoremove
- boolean getAutoRemove()
void setIndeterminate()
Indeterminate
- 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()}