Interface UnattendedProgressInterface
- All Superinterfaces:
ProgressInterface
- All Known Implementing Classes:
DefaultUnattendedProgressInterface
The user notification interface during unattended installations. By default, no
progress information is shown during unattended installations. For each installer application, you can set the
"Progress interface creation" script property to provide your own means of displaying progress information.
For example, you might want to go to full-screen mode during update installers on dedicated special-purpose computers.
This interface adds a few methods to the default ProgressInterface interface that are only
relevant in unattended mode.
- See Also:
-
Field Summary
Fields inherited from interface ProgressInterface
OVERWRITE_ALL, OVERWRITE_NEVER, OVERWRITE_NO, OVERWRITE_YES, RETRY_CANCEL, RETRY_NO, RETRY_YESModifier and TypeFieldDescriptionstatic final intReturned byaskOverwriteif the user hits "All".static final intReturned byaskOverwriteif the user hits "Never".static final intReturned byaskOverwriteif the user hits "No".static final intReturned byaskOverwriteif the user hits "Yes".static final intReturned byaskRetryif the user hits "Cancel".static final intReturned byaskRetryif the user hits "No".static final intReturned byaskRetryif the user hits "Yes". -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanDeprecated.voidsetCancelButtonEnabled(boolean enabled) Called if the cancel button is enabled or disabled.voidsetCancelButtonVisible(boolean visible) Called if the cancel button is made visible or invisible.voidsetVisible(boolean visible) Called when the progress interface is created and destroyed.Methods inherited from interface ProgressInterface
askContinue, askOverwrite, askRetry, clearProgress, getPercentCompleted, isAlertsShown, isUnattendedProgressDialog, setDetailMessage, setIndeterminateProgress, setPercentCompleted, setSecondaryPercentCompleted, setStatusMessage, showFailureModifier and TypeMethodDescriptionbooleanaskContinue(File file) Asks the user whether to continue after the specified file could not be installed.intaskOverwrite(File file) Asks the user whether the specified file should be overwritten.intAsks the user whether the installer should retry to overwrite the specified file.default voidClear any progress bar, spinner or detail line that the implementation may currently be displaying.intRetrieves the current progress valuedefault booleanReturns if alerts are shown.default booleanReturns if the installer application has been started in the "Unattended mode with progress dialog" execution mode, either because the "Default execution mode" property of the installer application was set accordingly or because-splash <title>was passed as a command line argument.voidsetDetailMessage(String message) Sets the detail message on the progress screen.voidsetIndeterminateProgress(boolean indeterminateProgress) Indicate that an action is performed whose duration is not known.voidsetPercentCompleted(int value) Sets the completion percentage of the current action.voidsetSecondaryPercentCompleted(int value) Sets the completion percentage of a secondary task, like the unpacking of a JAR file that was packed with Pack200.voidsetStatusMessage(String message) Sets the status message on the progress screen.voidshowFailure(String message) Shows an error dialog with the specified message.
-
Method Details
-
setVisible
void setVisible(boolean visible) Called when the progress interface is created and destroyed. At startup, this method is called with a parameter oftrue, at exit it is called with a parameter offalse. You should use this method for the life cycle of a window or similar resources.- Parameters:
visible-trueat startup andfalseat exit
-
setCancelButtonEnabled
void setCancelButtonEnabled(boolean enabled) Called if the cancel button is enabled or disabled.- Parameters:
enabled-trueorfalse- See Also:
-
setCancelButtonVisible
void setCancelButtonVisible(boolean visible) Called if the cancel button is made visible or invisible.- Parameters:
visible-trueorfalse- See Also:
-
isAskForProxy
Deprecated.
-