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

public class OperationInfo extends Object
The class with information that presents the operation.
  • Constructor Details

    • OperationInfo

      public OperationInfo(Object handle, String operationMessage, int totalWork)
      Creates a new instance.
      Parameters:
      handle - the handle of the operation, cannot be null.
      operationMessage - 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.
  • Method Details

    • getOperationMessage

      public String getOperationMessage()
      Returns the localized operation message.
      Returns:
      the localized operation message, never null.
    • getWorked

      public int getWorked()
      Returns the amount of done work.
      Returns:
      the amount of done work.
    • getHandle

      public Object getHandle()
      Returns the handle of the operation.
      Returns:
      the handle of the operation, never null.
    • worked

      public void worked(int worked)
      Updates the progress with the worked.
      Parameters:
      worked - the worked amount
    • getTotalWork

      public int getTotalWork()
      Returns the amount of total work.
      Returns:
      the amount of total work.
    • getPercentDone

      public int getPercentDone()
      Returns the percent of done work.
      Returns:
      the percent of done work.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object