com.izforge.izpack.panels.process
Class ProcessPanelAutomation

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

public class ProcessPanelAutomation
extends PanelAutomationHelper
implements PanelAutomation, AbstractUIProcessHandler

Functions to support automated usage of the ProcessPanel.

Author:
Jonathan Halliday, Tino Schwarze

Field Summary
 
Fields inherited from interface com.izforge.izpack.api.handler.AbstractUIHandler
ANSWER_CANCEL, ANSWER_NO, ANSWER_YES, CHOICES_YES_NO
 
Constructor Summary
ProcessPanelAutomation(InstallData installData, RulesEngine rules, Resources resources, PlatformModelMatcher matcher)
          Constructs a ProcessPanelAutomationHelper.
 
Method Summary
 void createInstallationRecord(InstallData idata, IXMLElement panelRoot)
           
 void finishProcess()
           
 void finishProcessing(boolean unlockPrev, boolean unlockNext)
           
 void logOutput(String message, boolean stderr)
          Log the given message.
 void processOptions(InstallData installData, Overrides overrides)
           
 void runAutomated(InstallData idata, IXMLElement panelRoot)
           
 void startProcess(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.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
 
Methods inherited from interface com.izforge.izpack.api.handler.AbstractUIHandler
askQuestion, askQuestion, askWarningQuestion, emitError, emitNotification, emitWarning
 

Constructor Detail

ProcessPanelAutomation

public ProcessPanelAutomation(InstallData installData,
                              RulesEngine rules,
                              Resources resources,
                              PlatformModelMatcher matcher)
Constructs a ProcessPanelAutomationHelper.

Parameters:
installData - the installation data
resources - the resources
rules - the rules
matcher - the platform-model matcher
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

logOutput

public void logOutput(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(boolean unlockPrev,
                             boolean unlockNext)
Specified by:
finishProcessing in interface AbstractUIProcessHandler
See Also:
AbstractUIProcessHandler.finishProcessing(boolean, boolean)

startProcess

public void startProcess(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


Copyright © 2018. All rights reserved.