public interface ProgressInterface
The user notification interface during installation. It displays progress and messages and can ask questions relevant for installation purposes in custom actions.
| Field Summary | |
|---|---|
static int |
OVERWRITE_ALL
Returned from askOverwrite if the user hits "All". |
static int |
OVERWRITE_NEVER
Returned from askOverwrite if the user hits "Never". |
static int |
OVERWRITE_NO
Returned from askOverwrite if the user hits "No". |
static int |
OVERWRITE_YES
Returned from askOverwrite if the user hits "Yes". |
static int |
RETRY_CANCEL
Returned from askRetry if the user hits "Cancel". |
static int |
RETRY_NO
Returned from askRetry if the user hits "No". |
static int |
RETRY_YES
Returned from askRetry if the user hits "Yes". |
| Method Summary | |
|---|---|
boolean |
askContinue(java.io.File file)
Asks the user whether to continue after the specified file could not be installed. |
int |
askOverwrite(java.io.File file)
Asks the user whether the specified file should be overwritten. |
int |
askRetry(java.io.File file)
Asks the user whether the installer should retry to overwrite the specified file. |
void |
setDetailMessage(java.lang.String message)
Sets the detail message on the progress screen. |
void |
setIndeterminateProgress(boolean indeterminateProgress)
Indicates that an action is performed whose duration is not known. |
void |
setPercentCompleted(int value)
Sets the percentage of completion of the current action. |
void |
setStatusMessage(java.lang.String message)
Sets the status message on the progress screen. |
void |
showFailure(java.lang.String message)
Shows an error dialog with the specified message. |
| Field Detail |
|---|
static final int OVERWRITE_NO
static final int OVERWRITE_YES
static final int OVERWRITE_ALL
static final int OVERWRITE_NEVER
static final int RETRY_NO
static final int RETRY_YES
static final int RETRY_CANCEL
| Method Detail |
|---|
void setStatusMessage(java.lang.String message)
message - the new message.void setDetailMessage(java.lang.String message)
message - the new message.void setPercentCompleted(int value)
value - a value between 0 and 100.void setIndeterminateProgress(boolean indeterminateProgress)
indeterminateProgress - pass true to switch on indeterminate progress
feedback and false to switch it off again. When you switch it off,
the previous percentage will be shown in the progess bar.void showFailure(java.lang.String message)
message - the error messageint askOverwrite(java.io.File file)
file - the file in question.
int askRetry(java.io.File file)
file - the file in question.
boolean askContinue(java.io.File file)
file - the file in question.