public interface TaskStatusManager extends Observable
Modifier and Type | Method and Description |
---|---|
void |
add(TaskStatus taskStatus)
Add the TaskStatus to the TaskStatusManager.
|
SimpleTaskStatus |
createDefaultSimpleTaskStatus(java.lang.String label)
Create a new instance of the default implementation of a
SimpleTaskStatus.
|
SimpleTaskStatus |
creteDefaultSimpleTaskStatus(java.lang.String label)
Deprecated.
|
TaskStatus |
get(java.lang.String code)
Retrieve a TaskStatus from the manager by code.
|
java.util.Map |
getAll()
Get a unmodifiable Map with all the TaskStatus in the
manager.
|
java.lang.String |
getNewCode()
Return a new code to a TaskStatus.
|
TaskStatus |
getRunningTaskStatusMostRecent()
Return the running task status most recent.
|
boolean |
isEmpty() |
void |
remove(java.lang.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(java.lang.String code)
code
- of the TaskStatus to retrievevoid remove(java.lang.String code)
code
- of the TaskStatus to removevoid remove(TaskStatus taskStatus)
taskStatus
- java.util.Map getAll()
boolean isEmpty()
java.lang.String getNewCode()
void update(TaskStatus taskstatus)
taskstatus
- SimpleTaskStatus creteDefaultSimpleTaskStatus(java.lang.String label)
createDefaultSimpleTaskStatus(String)
label
- used in the title of the new TaskStatus.SimpleTaskStatus createDefaultSimpleTaskStatus(java.lang.String label)
label
- used in the title of the new TaskStatus.TaskStatus getRunningTaskStatusMostRecent()