com.izforge.izpack.panels.compile
Class CompilePanelAutomationHelper

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

public class CompilePanelAutomationHelper
extends PanelAutomationHelper
implements PanelAutomation, CompileHandler

Functions to support automated usage of the CompilePanel

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
CompilePanelAutomationHelper(VariableSubstitutor variableSubstitutor, Resources resources, PlatformModelMatcher matcher)
          Constructs a CompilePanelAutomationHelper.
 
Method Summary
 void createInstallationRecord(InstallData installData, IXMLElement rootElement)
           
 void handleCompileError(CompileResult error)
          Reports the error to System.err
 void makeXMLData(InstallData installData, IXMLElement panelRoot)
          Save installDataGUI for running automated.
 void nextStep(String jobName, int max, int jobNo)
          Reports progress to System.out
 void processOptions(InstallData installData, Overrides overrides)
           
 void progress(int val, String msg)
          Tell about progress.
 void progress(String message)
          Invoked to notify progress.
 void restartAction(String name, String overallMessage, String tip, int steps)
          Invoked when an action restarts.
 void runAutomated(InstallData idata, IXMLElement panelRoot)
           
 void setSubStepNo(int no_of_substeps)
          
 void startAction(String name, int noOfJobs)
          Reports progress on System.out
 void stopAction()
          Sets state variable for thread sync.
 
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

CompilePanelAutomationHelper

public CompilePanelAutomationHelper(VariableSubstitutor variableSubstitutor,
                                    Resources resources,
                                    PlatformModelMatcher matcher)
Constructs a CompilePanelAutomationHelper.

Parameters:
variableSubstitutor - the variable substituter
resources - the resources
matcher - the platform-model matcher
Method Detail

makeXMLData

public void makeXMLData(InstallData installData,
                        IXMLElement panelRoot)
Save installDataGUI for running automated.

Parameters:
installData - installation parameters
panelRoot - unused.

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 noOfJobs)
Reports progress on System.out

Specified by:
startAction in interface ProgressListener

handleCompileError

public void handleCompileError(CompileResult error)
Reports the error to System.err

Specified by:
handleCompileError in interface CompileHandler
Parameters:
error - the error
See Also:
CompileHandler.handleCompileError(CompileResult)

stopAction

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

Specified by:
stopAction in interface ProgressListener

progress

public void progress(int val,
                     String msg)
Tell about progress.

Specified by:
progress in interface ProgressListener
Parameters:
val -
msg -

nextStep

public void nextStep(String jobName,
                     int max,
                     int jobNo)
Reports progress to System.out

Specified by:
nextStep in interface ProgressListener
Parameters:
jobName - The next job's name.
max - unused
jobNo - The next job's number.

setSubStepNo

public void setSubStepNo(int no_of_substeps)

Specified by:
setSubStepNo in interface ProgressListener

progress

public void progress(String message)
Invoked to notify progress.

This increments the current step.

Specified by:
progress in interface ProgressListener
Parameters:
message - a message describing the step

restartAction

public void restartAction(String name,
                          String overallMessage,
                          String tip,
                          int steps)
Invoked when an action restarts.

Specified by:
restartAction in interface ProgressListener
Parameters:
name - the name of the action
overallMessage - a message describing the overall progress
tip - a tip describing the current progress
steps - the number of steps the action consists of

createInstallationRecord

public void createInstallationRecord(InstallData installData,
                                     IXMLElement rootElement)
Specified by:
createInstallationRecord in interface PanelAutomation


Copyright © 2018. All rights reserved.