com.izforge.izpack.panels
Class ProcessPanelAutomationHelper

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

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
           
private  ProcessPanelWorker worker
           
 
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.
 void 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

worker

private ProcessPanelWorker worker

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 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

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
Parameters:
message -
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
Parameters:
name -

finishProcess

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