com.izforge.izpack.panels
Class InstallPanelAutomationHelper

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

public class InstallPanelAutomationHelper
extends PanelAutomationHelper
implements PanelAutomation, AbstractUIProgressHandler

Functions to support automated usage of the InstallPanel

Author:
Jonathan Halliday

Field Summary
private  boolean done
           
private  int noOfPacks
           
 
Fields inherited from interface com.izforge.izpack.util.AbstractUIHandler
ANSWER_CANCEL, ANSWER_NO, ANSWER_YES, CHOICES_YES_NO, CHOICES_YES_NO_CANCEL
 
Constructor Summary
InstallPanelAutomationHelper()
           
 
Method Summary
 void makeXMLData(AutomatedInstallData installData, XMLElement panelRoot)
          Null op - this panel type has no state to serialize.
 void nextStep(java.lang.String packName, int stepno, int stepsize)
          Reports progress to System.out
 void progress(int val, java.lang.String msg)
          Null op.
 void runAutomated(AutomatedInstallData idata, XMLElement panelRoot)
          Perform the installation actions.
 void startAction(java.lang.String name, int no_of_steps)
          Reports progress on System.out
 void stopAction()
          Sets state variable for thread sync.
 
Methods inherited from class com.izforge.izpack.installer.PanelAutomationHelper
askQuestion, askQuestion, emitError, emitNotification, emitWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.izforge.izpack.util.AbstractUIHandler
askQuestion, askQuestion, emitError, emitNotification, emitWarning
 

Field Detail

done

private boolean done

noOfPacks

private int noOfPacks
Constructor Detail

InstallPanelAutomationHelper

public InstallPanelAutomationHelper()
Method Detail

makeXMLData

public void makeXMLData(AutomatedInstallData installData,
                        XMLElement panelRoot)
Null op - this panel type has no state to serialize.

Specified by:
makeXMLData in interface PanelAutomation
Parameters:
installData - unused.
panelRoot - unused.

runAutomated

public void runAutomated(AutomatedInstallData idata,
                         XMLElement panelRoot)
Perform the installation actions.

Specified by:
runAutomated in interface PanelAutomation
Parameters:
panelRoot - The panel XML tree root.
idata - The installation data

startAction

public void startAction(java.lang.String name,
                        int no_of_steps)
Reports progress on System.out

Specified by:
startAction in interface AbstractUIProgressHandler
Parameters:
name - The name of the action.
no_of_steps - The number of steps the action consists of.
See Also:
AbstractUIProgressHandler.startAction(String, int)

stopAction

public void stopAction()
Sets state variable for thread sync.

Specified by:
stopAction in interface AbstractUIProgressHandler
See Also:
AbstractUIProgressHandler.stopAction()

progress

public void progress(int val,
                     java.lang.String msg)
Null op.

Specified by:
progress in interface AbstractUIProgressHandler
Parameters:
val -
msg -
See Also:
AbstractUIProgressHandler.progress(int, String)

nextStep

public void nextStep(java.lang.String packName,
                     int stepno,
                     int stepsize)
Reports progress to System.out

Specified by:
nextStep in interface AbstractUIProgressHandler
Parameters:
packName - The currently installing pack.
stepno - The number of the pack
stepsize - unused
See Also:
AbstractUIProgressHandler.nextStep(String, int, int)