Class OperationProgressManager
java.lang.Object
com._1c.g5.v8.activitytracking.ui.internal.progress.OperationProgressManager
The operation progress manager.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOperation
(Object handle, String message, int totalWork) Adds the operation.getInfos()
Returns currently managed operations.static OperationProgressManager
Returns the singleton instance of the manager.void
removeOperation
(Object handle) Removes the operation.void
updateOperationProgress
(Object handle, int worked) Updates operation progress.
-
Method Details
-
getInstance
Returns the singleton instance of the manager.- Returns:
- the singleton instance of the manager, never
null
.
-
getInfos
Returns currently managed operations.- Returns:
- currently managed operations, never code null.
-
addOperation
Adds the operation.- Parameters:
handle
- the handle of the operation, cannot benull
.message
- the localized operation name, cannot benull
.totalWork
- the amount of work to be done within the operation. IftotalWork
equals '-1' the progress is infinite.
-
updateOperationProgress
Updates operation progress.- Parameters:
handle
- the handle of the operation, cannot benull
.worked
- the amount of done work.
-
removeOperation
Removes the operation.- Parameters:
handle
- the handle of the operation, cannot benull
.
-