public class SimpleTaskStatusDelegated extends java.lang.Object implements SimpleTaskStatus
FAKE_STATUS| Constructor and Description |
|---|
SimpleTaskStatusDelegated(es.unex.sextante.core.ITaskMonitor monitor,
java.lang.String taskName)
Creates a new
SimpleTaskStatusDelegated with a
ITaskMonitor and the name of the task to perform. |
| 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 |
addObserver(Observer o) |
void |
cancel()
Used by the task to inform that it has terminated cancelled by the user
or another task.
|
void |
cancelRequest()
Request to the task that cancel.
|
void |
deleteObserver(Observer o) |
void |
deleteObservers() |
boolean |
getAutoRemove()
Return the autoremove value of this TaskStatus.
|
java.lang.String |
getCode()
Gte the code of this TaskStatus.
|
int |
getCompleted()
Retorna el porcentaje de completitud de la tarea asociada
a este TaskStatus.
|
long |
getCurValue() |
java.lang.String |
getLabel()
Get a label that represent the status of the task
|
java.util.Date |
getLastModification()
Returns date of last modificaction of status.
|
TaskStatusManager |
getManager()
Return the TaskStatusManager associated to this TaskStatus.
|
java.lang.String |
getMessage() |
java.lang.String |
getProgressLabel() |
java.lang.String |
getTitle()
Get the title associated to the task of this TaskStatus
|
void |
incrementCurrentValue() |
boolean |
isAborted()
Return true if the task has terminated with errors.
|
boolean |
isCancellable()
Return true if the task associated to this
TaskStatus can be canceled.
|
boolean |
isCancellationRequested()
Return true if has request to cancel to the task.
|
boolean |
isCancelled()
Return true if the task has cancelled by the
user or another task.
|
boolean |
isIndeterminate()
Return true if the completion of this task
can't calculate.
|
boolean |
isRunning()
Return true if the task is running.
|
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
SimpleTaskStatus.push(). |
void |
push()
Este metodo guarda los valores de progreso y el mensaje de la tarea para
ser restaurados posteriormente invocando al metodo
SimpleTaskStatus.pop(). |
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.
|
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(java.lang.String title)
Used by the task to set the title associated to the task.
|
void |
setTittle(java.lang.String tittle)
Used by the task to set the title associated to the task.
|
void |
terminate()
Used by the task to inform that it has terminated without errors.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabort, cancel, get, incrementCurrentValue, isCancellationRequested, message, pop, push, setCurValue, setIndeterminate, setRangeOfValues, terminatepublic SimpleTaskStatusDelegated(es.unex.sextante.core.ITaskMonitor monitor,
java.lang.String taskName)
SimpleTaskStatusDelegated with a
ITaskMonitor and the name of the task to perform.monitor - to delegate totaskName - name of the task to performpublic void addObserver(Observer o)
addObserver in interface Observablepublic void deleteObserver(Observer o)
deleteObserver in interface Observablepublic void deleteObservers()
deleteObservers in interface Observablepublic void setTittle(java.lang.String tittle)
SimpleTaskStatussetTittle in interface SimpleTaskStatuspublic void setTitle(java.lang.String title)
SimpleTaskStatussetTitle in interface SimpleTaskStatuspublic void message(java.lang.String message)
SimpleTaskStatusmessage in interface SimpleTaskStatuspublic void setRangeOfValues(long min,
long max)
SimpleTaskStatussetRangeOfValues in interface SimpleTaskStatuspublic void setCurValue(long value)
SimpleTaskStatussetCurValue in interface SimpleTaskStatussetRangeOfValuespublic boolean isCancellationRequested()
CancellableTaskisCancellationRequested in interface CancellableTaskpublic void cancelRequest()
CancellableTaskcancelRequest in interface CancellableTaskpublic void terminate()
SimpleTaskStatusterminate in interface SimpleTaskStatuspublic java.lang.String getTitle()
TaskStatusgetTitle in interface TaskStatuspublic void cancel()
SimpleTaskStatuscancel in interface SimpleTaskStatuspublic java.lang.String getCode()
TaskStatusgetCode in interface TaskStatuspublic void abort()
SimpleTaskStatusabort in interface SimpleTaskStatuspublic int getCompleted()
TaskStatusgetCompleted in interface TaskStatuspublic void remove()
SimpleTaskStatusremove in interface SimpleTaskStatuspublic void add()
SimpleTaskStatusadd in interface SimpleTaskStatuspublic java.lang.String getLabel()
TaskStatusgetLabel in interface TaskStatuspublic void setCancellable(boolean cancellable)
SimpleTaskStatussetCancellable in interface SimpleTaskStatuspublic boolean isCancelled()
TaskStatusisCancelled in interface TaskStatuspublic void setAutoremove(boolean autoremove)
SimpleTaskStatussetAutoremove in interface SimpleTaskStatuspublic boolean isAborted()
TaskStatusisAborted in interface TaskStatuspublic boolean isRunning()
TaskStatusisRunning in interface TaskStatuspublic boolean getAutoRemove()
SimpleTaskStatusgetAutoRemove in interface SimpleTaskStatuspublic java.util.Date getLastModification()
TaskStatusgetLastModification in interface TaskStatuspublic TaskStatusManager getManager()
TaskStatusgetManager in interface TaskStatuspublic boolean isIndeterminate()
TaskStatusisIndeterminate in interface TaskStatuspublic boolean isCancellable()
TaskStatusisCancellable in interface TaskStatuspublic void pop()
SimpleTaskStatusSimpleTaskStatus.push().pop in interface SimpleTaskStatus#push()}public void push()
SimpleTaskStatusSimpleTaskStatus.pop().
Los metodos SimpleTaskStatus.push() y SimpleTaskStatus.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.push in interface SimpleTaskStatus#pop()}public void setIndeterminate()
SimpleTaskStatussetIndeterminate in interface SimpleTaskStatuspublic void restart()
restart in interface SimpleTaskStatuspublic void incrementCurrentValue()
incrementCurrentValue in interface SimpleTaskStatuspublic java.lang.String getMessage()
getMessage in interface TaskStatuspublic java.lang.String getProgressLabel()
getProgressLabel in interface TaskStatuspublic long getCurValue()
getCurValue in interface SimpleTaskStatus