com.izforge.izpack.panels
Class ProcessPanelAutomationHelper

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

public class ProcessPanelAutomationHelper
extends PanelAutomationHelper
implements PanelAutomation, AbstractUIProcessHandler

Functions to support automated usage of the CompilePanel

Author:
Jonathan Halliday, Tino Schwarze

Field Summary
private  int currentJob
           
private  int noOfJobs
           
 
Fields inherited from interface com.izforge.izpack.util.AbstractUIHandler
ANSWER_CANCEL, ANSWER_NO, ANSWER_YES, CHOICES_YES_NO, CHOICES_YES_NO_CANCEL
 
Constructor Summary
ProcessPanelAutomationHelper()
           
 
Method Summary
 void finishProcess()
           
 void finishProcessing()
           
 void logOutput(java.lang.String message, boolean stderr)
          Log the given message.
 void makeXMLData(AutomatedInstallData installData, XMLElement panelRoot)
          Save data for running automated.
 boolean runAutomated(AutomatedInstallData idata, XMLElement panelRoot)
          Perform the installation actions.
 void startProcess(java.lang.String name)
          Notify the user that a process has started.
 void startProcessing(int noOfJobs)
          Reports progress on System.out
 
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

noOfJobs

private int noOfJobs

currentJob

private int currentJob
Constructor Detail

ProcessPanelAutomationHelper

public ProcessPanelAutomationHelper()
Method Detail

makeXMLData

public void makeXMLData(AutomatedInstallData installData,
                        XMLElement panelRoot)
Save data for running automated.

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

runAutomated

public boolean 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
Returns:
true if processes were run successfully.

logOutput

public void logOutput(java.lang.String message,
                      boolean stderr)
Description copied from interface: AbstractUIProcessHandler
Log the given message.

Specified by:
logOutput in interface AbstractUIProcessHandler
stderr - true if this is a message received from a program via stderr

startProcessing

public void startProcessing(int noOfJobs)
Reports progress on System.out

Specified by:
startProcessing in interface AbstractUIProcessHandler
See Also:
AbstractUIProcessHandler.startProcessing(int)

finishProcessing

public void finishProcessing()
Specified by:
finishProcessing in interface AbstractUIProcessHandler
See Also:
AbstractUIProcessHandler.finishProcessing()

startProcess

public void startProcess(java.lang.String name)
Description copied from interface: AbstractUIProcessHandler
Notify the user that a process has started.

Specified by:
startProcess in interface AbstractUIProcessHandler

finishProcess

public void finishProcess()
Specified by:
finishProcess in interface AbstractUIProcessHandler