public interface TaskStatusManager extends Observable
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
addObserver, deleteObserver, deleteObservers
void add(TaskStatus taskStatus)
taskStatus
- to add to the managerTaskStatus get(String code)
code
- of the TaskStatus to retrievevoid remove(String code)
code
- of the TaskStatus to removevoid remove(TaskStatus taskStatus)
taskStatus
- Map getAll()
String getNewCode()
void update(TaskStatus taskstatus)
taskstatus
- SimpleTaskStatus creteDefaultSimpleTaskStatus(String label)
createDefaultSimpleTaskStatus(String)
label
- used in the title of the new TaskStatus.SimpleTaskStatus createDefaultSimpleTaskStatus(String label)
label
- used in the title of the new TaskStatus.TaskStatus getRunningTaskStatusMostRecent()