FileDocCategorySizeDatePackage
InstallListener.javaAPI DocJ2ME MIDP 2.02144Thu Nov 07 12:02:24 GMT 2002com.sun.midp.midletsuite

InstallListener

public interface InstallListener
Enables a MIDlet to respond installation warnings and status updates.

Fields Summary
Constructors Summary
Methods Summary
public booleanconfirmJarDownload(InstallState state)
Called with the current state of the install so the user can be asked to confirm the jar download. If false is returned, the an I/O exception thrown and {@link Installer#wasStopped()} will return true if called.

param
state current state of the install.
return
true if the user wants to continue, false to stop the install

public booleankeepRMS(InstallState state)
Called with the current state of the install so the user can be asked to confirm if the RMS data should be kept for new version of an updated suite. If false is returned, the an I/O exception thrown and {@link Installer#wasStopped()} will return true if called.

param
state current state of the install.
return
true if the user wants to keep the RMS data for the next suite

public voidupdateStatus(int status, InstallState state)
Called with the current status of the install. See {@link Installer} for the status codes.

param
status current status of the install.
param
state current state of the install.

public booleanwarnUser(InstallState state)
Called with the current state of the install so the user can be asked to override the warning. To get the warning from the state call {@link InstallState#getLastException()}. If false is returned, the last exception in the state will be thrown and {@link Installer#wasStopped()} will return true if called.

param
state current state of the install.
return
true if the user wants to continue, false to stop the install