Class OperationInfo
java.lang.Object
com._1c.g5.v8.activitytracking.ui.internal.progress.OperationInfo
The class with information that presents the operation.
-
Constructor Summary
ConstructorsConstructorDescriptionOperationInfo(Object handle, String operationMessage, int totalWork) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the handle of the operation.Returns the localized operation message.intReturns the percent of done work.intReturns the amount of total work.intReturns the amount of done work.inthashCode()voidworked(int worked) Updates the progress with theworked.
-
Constructor Details
-
OperationInfo
Creates a new instance.- Parameters:
handle- the handle of the operation, cannot benull.operationMessage- the localized operation name, cannot benull.totalWork- the amount of work to be done within the operation. IftotalWorkequals '-1' the progress is infinite.
-
-
Method Details
-
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
Returns the handle of the operation.- Returns:
- the handle of the operation, never
null.
-
worked
public void worked(int worked) Updates the progress with theworked.- 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
-
hashCode
public int hashCode()
-