install4j API

com.install4j.api.context
Interface UnattendedProgressInterface

All Superinterfaces:
ProgressInterface
All Known Implementing Classes:
DefaultUnattendedProgressInterface

public interface UnattendedProgressInterface
extends ProgressInterface

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 in order 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 class adds a few methods to the default ProgressInterface interface that are only relevant in unattended mode.

Author:
ej-technologies GmbH
See Also:
ProgressInterface, Context.getProgressInterface()

Field Summary
 
Fields inherited from interface com.install4j.api.context.ProgressInterface
OVERWRITE_ALL, OVERWRITE_NEVER, OVERWRITE_NO, OVERWRITE_YES, RETRY_CANCEL, RETRY_NO, RETRY_YES
 
Method Summary
 boolean isAskForProxy()
          Called if no internet connection is available for a download.
 void setCancelButtonEnabled(boolean enabled)
          Called if the cancel button is enabled or disabled.
 void setCancelButtonVisible(boolean visible)
          Called if the cancel button is made visible or invisible.
 void setVisible(boolean visible)
          Called when the progress interface is created and destroyed.
 
Methods inherited from interface com.install4j.api.context.ProgressInterface
askContinue, askOverwrite, askRetry, getPercentCompleted, setDetailMessage, setIndeterminateProgress, setPercentCompleted, setSecondaryPercentCompleted, setStatusMessage, showFailure
 

Method Detail

setVisible

void setVisible(boolean visible)
Called when the progress interface is created and destroyed. At startup, this method is called with a parameter of true, at exit it is called with a parameter of false. You should use this method for the lif-cycle of a window or similar resources.

Parameters:
visible - true at startup and false at exit

setCancelButtonEnabled

void setCancelButtonEnabled(boolean enabled)
Called if the cancel button is enabled or disabled.

Parameters:
enabled - true or false
See Also:
WizardContext.setCancelButtonEnabled(boolean)

setCancelButtonVisible

void setCancelButtonVisible(boolean visible)
Called if the cancel button is made visible or invisible.

Parameters:
visible - true or false
See Also:
WizardContext.setCancelButtonVisible(boolean)

isAskForProxy

boolean isAskForProxy()
Called if no internet connection is available for a download.

Returns:
true if a GUI dialog should be displayed that asks the user for proxy information or false if the download should fail.

install4j API