Class ProgressBean
java.lang.Object
ch.tocco.nice2.tasks.api.progress.ProgressBean
Represents the current progress of a task. Is used to inform the user (visually) about the current progress.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault label for status running_absolutestatic final StringDefault label for status cancelledstatic final StringDefault notification when a task is cancelledstatic final StringDefault label for status completedstatic final StringDefault notification when a task is completedstatic final ProgressBean.NotificationTypeDefault notification type when a task is completedstatic final StringDefault label for status failedstatic final StringDefault notification when a task has failedstatic final StringDefault label for status running_infinitestatic final StringDefault label for status pending -
Constructor Summary
ConstructorsConstructorDescriptionProgressBean(String taskId, String taskName, ProgressBean.Type type, String labelKey, @Nullable Map<String, String> vars) -
Method Summary
Modifier and TypeMethodDescriptionGet the textresources key of the progress.Get the id of the task.Get the name of the task.getType()Get theProgressBean.Typeof the progress.getVars()Get the variables (parameters for the placeholders in the label).
-
Field Details
-
DEFAULT_PENDING
-
DEFAULT_INFINITE
-
DEFAULT_ABSOLUTE
-
DEFAULT_COMPLETED
-
DEFAULT_FAILED
-
DEFAULT_CANCELLED
-
DEFAULT_COMPLETED_NOTIFICATION
Default notification when a task is completed- See Also:
-
DEFAULT_COMPLETED_NOTIFICATION_TYPE
Default notification type when a task is completed -
DEFAULT_FAILED_NOTIFICATION
Default notification when a task has failed- See Also:
-
DEFAULT_CANCELLED_NOTIFICATION
Default notification when a task is cancelled- See Also:
-
-
Constructor Details
-
ProgressBean
-
-
Method Details
-
getTaskId
-
getTaskName
-
getType
Get theProgressBean.Typeof the progress.- Returns:
- the
ProgressBean.Type
-
getLabelKey
Get the textresources key of the progress.- Returns:
- the textressources key
-
getVars
-