|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gvsig.tools.task.impl.BaseTaskStatus
public class BaseTaskStatus
Field Summary | |
---|---|
protected String |
code
|
protected long |
curValue
|
protected boolean |
isAbortedByError
|
protected boolean |
isCancelled
|
protected boolean |
isRunning
|
protected TaskStatusManager |
manager
|
protected long |
maxValue
|
protected String |
message
|
protected long |
minValue
|
protected String |
title
|
Constructor Summary | |
---|---|
BaseTaskStatus(String tittle)
|
|
BaseTaskStatus(String tittle,
long minValue,
long maxValue)
|
Method Summary | |
---|---|
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. |
String |
getCode()
Gte the code of this TaskStatus. |
int |
getCompleted()
Retorna el porcentaje de completitud de la tarea asociada a este TaskStatus. |
String |
getLabel()
Get a label that represent the status of the task |
Date |
getLastModification()
Returns date of last modificaction of status. |
TaskStatusManager |
getManager()
Return the TaskStatusManager associated to this TaskStatus. |
String |
getTitle()
Get the title associated to the task of this TaskStatus |
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(String message)
Used by the task to set a message associated to the current action of the task |
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 |
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)
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. |
protected void |
touch()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long minValue
protected long maxValue
protected long curValue
protected String title
protected String code
protected String message
protected boolean isCancelled
protected boolean isAbortedByError
protected boolean isRunning
protected TaskStatusManager manager
Constructor Detail |
---|
public BaseTaskStatus(String tittle)
public BaseTaskStatus(String tittle, long minValue, long maxValue)
Method Detail |
---|
public void setRangeOfValues(long min, long max)
SimpleTaskStatus
setRangeOfValues
in interface SimpleTaskStatus
protected void touch()
public Date getLastModification()
TaskStatus
getLastModification
in interface TaskStatus
public void message(String message)
SimpleTaskStatus
message
in interface SimpleTaskStatus
public String getTitle()
TaskStatus
getTitle
in interface TaskStatus
public String getCode()
TaskStatus
getCode
in interface TaskStatus
public void setCurValue(long value)
SimpleTaskStatus
setCurValue
in interface SimpleTaskStatus
setRangeOfValues
public int getCompleted()
TaskStatus
getCompleted
in interface TaskStatus
public String getLabel()
TaskStatus
getLabel
in interface TaskStatus
public void terminate()
SimpleTaskStatus
terminate
in interface SimpleTaskStatus
public void cancel()
SimpleTaskStatus
cancel
in interface SimpleTaskStatus
public void abort()
SimpleTaskStatus
abort
in interface SimpleTaskStatus
public boolean isCancelled()
TaskStatus
isCancelled
in interface TaskStatus
public boolean isAborted()
TaskStatus
isAborted
in interface TaskStatus
public boolean isRunning()
TaskStatus
isRunning
in interface TaskStatus
public TaskStatusManager getManager()
TaskStatus
getManager
in interface TaskStatus
public boolean isIndeterminate()
TaskStatus
isIndeterminate
in interface TaskStatus
public void add()
SimpleTaskStatus
add
in interface SimpleTaskStatus
public void remove()
SimpleTaskStatus
remove
in interface SimpleTaskStatus
public boolean isCancellable()
TaskStatus
isCancellable
in interface TaskStatus
public void setCancellable(boolean cancellable)
SimpleTaskStatus
setCancellable
in interface SimpleTaskStatus
public boolean isCancellationRequested()
CancellableTask
isCancellationRequested
in interface CancellableTask
public void cancelRequest()
CancellableTask
cancelRequest
in interface CancellableTask
public void addObserver(Observer o)
addObserver
in interface Observable
public void deleteObserver(Observer o)
deleteObserver
in interface Observable
public void deleteObservers()
deleteObservers
in interface Observable
public void setTittle(String tittle)
SimpleTaskStatus
setTittle
in interface SimpleTaskStatus
public void setTitle(String title)
SimpleTaskStatus
setTitle
in interface SimpleTaskStatus
public void setAutoremove(boolean autoremove)
SimpleTaskStatus
setAutoremove
in interface SimpleTaskStatus
public boolean getAutoRemove()
SimpleTaskStatus
getAutoRemove
in interface SimpleTaskStatus
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |