Package com.illumon.util.progress
Class ProcessStatusSubrange
java.lang.Object
com.illumon.util.progress.ProcessStatusSubrange
- All Implemented Interfaces:
StatusCallback
An interface class that allows a StatusCallback to represent a portion of another's range.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get the current value of the the current step/subrange.int
getValue()
get the current value of the progress object.void
This object has been assigned a range of the parents range.
-
Constructor Details
-
ProcessStatusSubrange
-
-
Method Details
-
update
This object has been assigned a range of the parents range. Adjust the stepProgress value from 0-100 to the value in the full range of the parent object.- Specified by:
update
in interfaceStatusCallback
- Parameters:
progress
- percent complete (0-100)status
- optional message text
-
getValue
public int getValue()Description copied from interface:StatusCallback
get the current value of the progress object.- Specified by:
getValue
in interfaceStatusCallback
- Returns:
- the % complete of the topmost ProcessStatus - a number between 1 and 100
-
getStepValue
public int getStepValue()Description copied from interface:StatusCallback
Get the current value of the the current step/subrange.- Specified by:
getStepValue
in interfaceStatusCallback
- Returns:
- the % complete of the current step - a number between 1 and 100
-