|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.izforge.izpack.installer.PanelAutomationHelper
com.izforge.izpack.panels.CompilePanelAutomationHelper
public class CompilePanelAutomationHelper
Functions to support automated usage of the CompilePanel
| Field Summary | |
|---|---|
private int |
job_max
|
private java.lang.String |
job_name
|
private int |
last_line_len
|
private java.io.PrintStream |
stderr
|
private java.io.PrintStream |
stdout
|
private CompileWorker |
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 | |
|---|---|
CompilePanelAutomationHelper()
|
|
| Method Summary | |
|---|---|
void |
handleCompileError(CompileResult error)
Reports the error to System.err |
void |
makeXMLData(AutomatedInstallData installData,
IXMLElement panelRoot)
Save data for running automated. |
void |
nextStep(java.lang.String jobName,
int max,
int jobNo)
Reports progress to System.out |
void |
progress(int val,
java.lang.String msg)
Tell about progress. |
void |
runAutomated(AutomatedInstallData idata,
IXMLElement panelRoot)
Perform the installation actions. |
void |
setSubStepNo(int no_of_substeps)
Set the number of substeps. |
void |
startAction(java.lang.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.PanelAutomationHelper |
|---|
askQuestion, askQuestion, emitError, emitErrorAndBlockNext, 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, emitErrorAndBlockNext, emitNotification, emitWarning |
| Field Detail |
|---|
private CompileWorker worker
private int job_max
private java.lang.String job_name
private int last_line_len
private java.io.PrintStream stdout
private java.io.PrintStream stderr
| Constructor Detail |
|---|
public CompilePanelAutomationHelper()
| Method Detail |
|---|
public void makeXMLData(AutomatedInstallData installData,
IXMLElement panelRoot)
makeXMLData in interface PanelAutomationinstallData - installation parameterspanelRoot - unused.
public void runAutomated(AutomatedInstallData idata,
IXMLElement panelRoot)
throws InstallerException
runAutomated in interface PanelAutomationpanelRoot - The panel XML tree root.idata - The installation data
InstallerException - if something went wrong.
public void startAction(java.lang.String name,
int noOfJobs)
startAction in interface AbstractUIProgressHandlername - The name of the action.noOfJobs - The number of steps the action consists of.AbstractUIProgressHandler.startAction(String, int)public void handleCompileError(CompileResult error)
handleCompileError in interface CompileHandlererror - the errorCompileHandler.handleCompileError(CompileResult)public void stopAction()
stopAction in interface AbstractUIProgressHandlerAbstractUIProgressHandler.stopAction()
public void progress(int val,
java.lang.String msg)
progress in interface AbstractUIProgressHandlerval - msg - AbstractUIProgressHandler.progress(int, String)
public void nextStep(java.lang.String jobName,
int max,
int jobNo)
nextStep in interface AbstractUIProgressHandlerjobName - The next job's name.max - unusedjobNo - The next job's number.AbstractUIProgressHandler.nextStep(String, int, int)public void setSubStepNo(int no_of_substeps)
setSubStepNo in interface AbstractUIProgressHandlerno_of_substeps - The number of substeps.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||