Interface ProgressHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "Progress display" form component. The Swing widget is a
JProgressBar.
Reach this handle via ScreenHandle.progress().
-
Method Summary
Modifier and TypeMethodDescriptionawaitCompletion(Duration timeout) Block the calling thread untilgetPercentCompleted()reaches 100 or the given timeout elapses.The current bottom detail message, or the empty string if unset.intThe current overall progress as a value from 0 to 100.The current top status message, or the empty string if unset.booleanWhether the progress bar is currently in indeterminate mode.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getPercentCompleted
int getPercentCompleted()The current overall progress as a value from 0 to 100. -
getStatusMessage
The current top status message, or the empty string if unset. -
getDetailMessage
The current bottom detail message, or the empty string if unset. -
isIndeterminate
boolean isIndeterminate()Whether the progress bar is currently in indeterminate mode. -
awaitCompletion
Block the calling thread untilgetPercentCompleted()reaches 100 or the given timeout elapses. Throws anInstallerTestExceptionon timeout. -
assertEnabled
- Specified by:
assertEnabledin interfaceFormComponentHandle
-
assertDisabled
- Specified by:
assertDisabledin interfaceFormComponentHandle
-
assertVisible
- Specified by:
assertVisiblein interfaceFormComponentHandle
-
assertInvisible
- Specified by:
assertInvisiblein interfaceFormComponentHandle
-