org.gvsig.tools.task
Interface TaskStatus

All Superinterfaces:
CancellableTask, Observable
All Known Subinterfaces:
SimpleTaskStatus
All Known Implementing Classes:
BaseTaskStatus

public interface TaskStatus
extends CancellableTask, Observable

Version:
$Id$
Author:
gvSIG Team

Method Summary
 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 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.
 
Methods inherited from interface org.gvsig.tools.task.CancellableTask
cancelRequest, isCancellationRequested
 
Methods inherited from interface org.gvsig.tools.observer.Observable
addObserver, deleteObserver, deleteObservers
 

Method Detail

getTitle

String getTitle()
Get the title associated to the task of this TaskStatus

Returns:
the task title

getCode

String getCode()
Gte the code of this TaskStatus.

Returns:
code of task

getCompleted

int getCompleted()
Retorna el porcentaje de completitud de la tarea asociada a este TaskStatus.

Returns:
el porcentaje de completitud.

getLabel

String getLabel()
Get a label that represent the status of the task

Returns:

isCancelled

boolean isCancelled()
Return true if the task has cancelled by the user or another task.

Returns:

isAborted

boolean isAborted()
Return true if the task has terminated with errors.

Returns:

isRunning

boolean isRunning()
Return true if the task is running.

Returns:

getLastModification

Date getLastModification()
Returns date of last modificaction of status.

Returns:

getManager

TaskStatusManager getManager()
Return the TaskStatusManager associated to this TaskStatus.

Returns:
the TaskStatusManager

isIndeterminate

boolean isIndeterminate()
Return true if the completion of this task can't calculate.

Returns:

isCancellable

boolean isCancellable()
Return true if the task associated to this TaskStatus can be canceled.

Returns:


Copyright © 2004-2011 gvSIG. All Rights Reserved.