com.izforge.izpack.panels.install
Class InstallPanelAutomationHelper

java.lang.Object
  extended by com.izforge.izpack.installer.automation.PanelAutomationHelper
      extended by com.izforge.izpack.panels.install.InstallPanelAutomationHelper
All Implemented Interfaces:
ProgressListener, AbstractUIHandler, PanelAutomation

public class InstallPanelAutomationHelper
extends PanelAutomationHelper
implements PanelAutomation, ProgressListener

Functions to support automated usage of the InstallPanel

Author:
Jonathan Halliday

Field Summary
 
Fields inherited from interface com.izforge.izpack.api.handler.AbstractUIHandler
ANSWER_CANCEL, ANSWER_NO, ANSWER_YES, CHOICES_YES_NO
 
Constructor Summary
InstallPanelAutomationHelper(IUnpacker unpacker)
          Constructs an InstallPanelAutomationHelper.
 
Method Summary
 void createInstallationRecord(InstallData idata, IXMLElement panelRoot)
           
 void nextStep(String packName, int stepno, int stepsize)
           
 void processOptions(InstallData installData, Overrides overrides)
           
 void progress(int val, String msg)
           
 void progress(String message)
           
 void restartAction(String name, String overallMessage, String tip, int steps)
           
 void runAutomated(InstallData idata, IXMLElement panelRoot)
           
 void setSubStepNo(int no_of_substeps)
           
 void startAction(String name, int no_of_steps)
           
 void stopAction()
           
 
Methods inherited from class com.izforge.izpack.installer.automation.PanelAutomationHelper
askQuestion, askQuestion, askWarningQuestion, emitError, emitNotification, emitWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstallPanelAutomationHelper

public InstallPanelAutomationHelper(IUnpacker unpacker)
Constructs an InstallPanelAutomationHelper.

Parameters:
unpacker - the unpacker
Method Detail

createInstallationRecord

public void createInstallationRecord(InstallData idata,
                                     IXMLElement panelRoot)
Specified by:
createInstallationRecord in interface PanelAutomation

runAutomated

public void runAutomated(InstallData idata,
                         IXMLElement panelRoot)
                  throws InstallerException
Specified by:
runAutomated in interface PanelAutomation
Throws:
InstallerException

processOptions

public void processOptions(InstallData installData,
                           Overrides overrides)
Specified by:
processOptions in interface PanelAutomation

startAction

public void startAction(String name,
                        int no_of_steps)
Specified by:
startAction in interface ProgressListener

stopAction

public void stopAction()
Specified by:
stopAction in interface ProgressListener

progress

public void progress(int val,
                     String msg)
Specified by:
progress in interface ProgressListener

nextStep

public void nextStep(String packName,
                     int stepno,
                     int stepsize)
Specified by:
nextStep in interface ProgressListener

setSubStepNo

public void setSubStepNo(int no_of_substeps)
Specified by:
setSubStepNo in interface ProgressListener

progress

public void progress(String message)
Specified by:
progress in interface ProgressListener

restartAction

public void restartAction(String name,
                          String overallMessage,
                          String tip,
                          int steps)
Specified by:
restartAction in interface ProgressListener


Copyright © 2018. All rights reserved.