Package org.reldb.toolbox.progress
Class EmptyProgressIndicator
java.lang.Object
org.reldb.toolbox.progress.EmptyProgressIndicator
- All Implemented Interfaces:
ProgressIndicator
A silent ProgressIndicator, for where a ProgressIndicator is required but you don't want to know.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the most recent non-null additional information.int
Get the current indicator position.int
getSteps()
Get the number of steps.void
initialise(int steps)
Initialise the indicator with the number of steps.void
Move the indicator to the given 0-based step.
-
Constructor Details
-
EmptyProgressIndicator
public EmptyProgressIndicator()
-
-
Method Details
-
initialise
public void initialise(int steps)Description copied from interface:ProgressIndicator
Initialise the indicator with the number of steps.- Specified by:
initialise
in interfaceProgressIndicator
- Parameters:
steps
- Number of steps or -1 if unknown. Should be non-zero.
-
getSteps
public int getSteps()Description copied from interface:ProgressIndicator
Get the number of steps. Set via initialise(...)- Specified by:
getSteps
in interfaceProgressIndicator
- Returns:
- The total number of steps; -1 if unknown.
-
move
Description copied from interface:ProgressIndicator
Move the indicator to the given 0-based step. additionalInformation supplies additional progress text; null if not needed.- Specified by:
move
in interfaceProgressIndicator
- Parameters:
step
- Move the indicator to this step number.additionalInformation
- Provide optional additional information about this step.
-
getPosition
public int getPosition()Description copied from interface:ProgressIndicator
Get the current indicator position.- Specified by:
getPosition
in interfaceProgressIndicator
- Returns:
- Current indicator position.
-
getLastMessage
Description copied from interface:ProgressIndicator
Get the most recent non-null additional information.- Specified by:
getLastMessage
in interfaceProgressIndicator
- Returns:
- Most recent non-null additional information string.
-