|
|||||||||
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,
XMLElement 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. |
boolean |
runAutomated(AutomatedInstallData idata,
XMLElement 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, 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 |
---|
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, XMLElement panelRoot)
makeXMLData
in interface PanelAutomation
installData
- installation parameterspanelRoot
- unused.public boolean runAutomated(AutomatedInstallData idata, XMLElement panelRoot)
runAutomated
in interface PanelAutomation
panelRoot
- The panel XML tree root.idata
- The installation data
public void startAction(java.lang.String name, int noOfJobs)
startAction
in interface AbstractUIProgressHandler
name
- 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 CompileHandler
error
- the errorCompileHandler.handleCompileError(CompileResult)
public void stopAction()
stopAction
in interface AbstractUIProgressHandler
AbstractUIProgressHandler.stopAction()
public void progress(int val, java.lang.String msg)
progress
in interface AbstractUIProgressHandler
val
- msg
- AbstractUIProgressHandler.progress(int, String)
public void nextStep(java.lang.String jobName, int max, int jobNo)
nextStep
in interface AbstractUIProgressHandler
jobName
- 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 AbstractUIProgressHandler
no_of_substeps
- The number of substeps.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |