org.gvsig.tools.task
Interface TaskStatusManager

All Superinterfaces:
Observable
All Known Implementing Classes:
DefaultTaskStatusManager

public interface TaskStatusManager
extends Observable

Version:
$Id$
Author:
gvSIG Team

Method Summary
 void add(TaskStatus taskStatus)
          Add the TaskStatus to the TaskStatusManager.
 SimpleTaskStatus createDefaultSimpleTaskStatus(String label)
          Create a new instance of the default implementation of a SimpleTaskStatus.
 SimpleTaskStatus creteDefaultSimpleTaskStatus(String label)
          Deprecated. @see createDefaultSimpleTaskStatus(String)
 TaskStatus get(String code)
          Retrieve a TaskStatus from the manager by code.
 Map getAll()
          Get a unmodifiable Map with all the TaskStatus in the manager.
 String getNewCode()
          Return a new code to a TaskStatus.
 TaskStatus getRunningTaskStatusMostRecent()
          Return the running task status most recent.
 void remove(String code)
          Remove the TaskStatus by the passed code from the manager
 void remove(TaskStatus taskStatus)
          Remove the TaskStatus from the mananger.
 void update(TaskStatus taskstatus)
          Inform to the manager that this task status has changed.
 
Methods inherited from interface org.gvsig.tools.observer.Observable
addObserver, deleteObserver, deleteObservers
 

Method Detail

add

void add(TaskStatus taskStatus)
Add the TaskStatus to the TaskStatusManager. If TaskStatus already in the manager this is updated.

Parameters:
taskStatus - to add to the manager

get

TaskStatus get(String code)
Retrieve a TaskStatus from the manager by code.

Parameters:
code - of the TaskStatus to retrieve
Returns:

remove

void remove(String code)
Remove the TaskStatus by the passed code from the manager

Parameters:
code - of the TaskStatus to remove

remove

void remove(TaskStatus taskStatus)
Remove the TaskStatus from the mananger.

Parameters:
taskStatus -

getAll

Map getAll()
Get a unmodifiable Map with all the TaskStatus in the manager. The keys of map are the code of TaskStatus.

Returns:
Map of TaskStatus.

getNewCode

String getNewCode()
Return a new code to a TaskStatus.

Returns:

update

void update(TaskStatus taskstatus)
Inform to the manager that this task status has changed. This method has used by the implementation of TaskStatus to inform to the manager of changes in a TaskStatus.

Parameters:
taskstatus -

creteDefaultSimpleTaskStatus

SimpleTaskStatus creteDefaultSimpleTaskStatus(String label)
Deprecated. @see createDefaultSimpleTaskStatus(String)

Create a new instance of the default implementation of a SimpleTaskStatus.

Parameters:
label - used in the title of the new TaskStatus.
Returns:
the new SimpleTaskStatus.

createDefaultSimpleTaskStatus

SimpleTaskStatus createDefaultSimpleTaskStatus(String label)
Create a new instance of the default implementation of a SimpleTaskStatus.

Parameters:
label - used in the title of the new TaskStatus.
Returns:
the new SimpleTaskStatus.

getRunningTaskStatusMostRecent

TaskStatus getRunningTaskStatusMostRecent()
Return the running task status most recent.

Returns:


Copyright © 2004-2011 gvSIG. All Rights Reserved.