Class OperationProgressManager

java.lang.Object
com._1c.g5.v8.activitytracking.ui.internal.progress.OperationProgressManager

public class OperationProgressManager extends Object
The operation progress manager.
  • Method Details

    • getInstance

      public static OperationProgressManager getInstance()
      Returns the singleton instance of the manager.
      Returns:
      the singleton instance of the manager, never null.
    • getInfos

      public OperationInfo[] getInfos()
      Returns currently managed operations.
      Returns:
      currently managed operations, never code null.
    • addOperation

      public void addOperation(Object handle, String message, int totalWork)
      Adds the operation.
      Parameters:
      handle - the handle of the operation, cannot be null.
      message - the localized operation name, cannot be null.
      totalWork - the amount of work to be done within the operation. If totalWork equals '-1' the progress is infinite.
    • updateOperationProgress

      public void updateOperationProgress(Object handle, int worked)
      Updates operation progress.
      Parameters:
      handle - the handle of the operation, cannot be null.
      worked - the amount of done work.
    • removeOperation

      public void removeOperation(Object handle)
      Removes the operation.
      Parameters:
      handle - the handle of the operation, cannot be null.