|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.izforge.izpack.installer.PanelConsoleHelper
com.izforge.izpack.panels.InstallPanelConsoleHelper
public class InstallPanelConsoleHelper
Install Panel console helper
| Field Summary | |
|---|---|
private int |
noOfPacks
|
| Fields inherited from interface com.izforge.izpack.util.AbstractUIHandler |
|---|
ANSWER_CANCEL, ANSWER_NO, ANSWER_YES, CHOICES_YES_NO, CHOICES_YES_NO_CANCEL |
| Constructor Summary | |
|---|---|
InstallPanelConsoleHelper()
|
|
| Method Summary | |
|---|---|
int |
askQuestion(java.lang.String title,
java.lang.String question,
int choices)
Ask the user a question. |
int |
askQuestion(java.lang.String title,
java.lang.String question,
int choices,
int default_choice)
Ask the user a question. |
void |
emitError(java.lang.String title,
java.lang.String message)
Notify the user of some error. |
void |
emitErrorAndBlockNext(java.lang.String title,
java.lang.String message)
Notify the user of some error and block the next button. |
void |
emitNotification(java.lang.String message)
Notify the user about something. |
boolean |
emitWarning(java.lang.String title,
java.lang.String message)
Warn the user about something. |
void |
nextStep(java.lang.String packName,
int stepno,
int stepsize)
The next step starts. |
void |
progress(int val,
java.lang.String msg)
Notify of progress. |
boolean |
runConsole(AutomatedInstallData idata)
Asks the panel to run in interactive console mode |
boolean |
runConsoleFromPropertiesFile(AutomatedInstallData installData,
java.util.Properties p)
Asks the panel to run and do its work, given a set of properties to use as variables |
boolean |
runGeneratePropertiesFile(AutomatedInstallData installData,
java.io.PrintWriter printWriter)
Asks the panel to return all inputed fields/variables in a string with a properties file style |
void |
setSubStepNo(int no_of_substeps)
Set the number of substeps. |
void |
startAction(java.lang.String name,
int no_of_steps)
The action starts. |
void |
stopAction()
The action was finished. |
| Methods inherited from class com.izforge.izpack.installer.PanelConsoleHelper |
|---|
askEndOfConsolePanel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int noOfPacks
| Constructor Detail |
|---|
public InstallPanelConsoleHelper()
| Method Detail |
|---|
public boolean runGeneratePropertiesFile(AutomatedInstallData installData,
java.io.PrintWriter printWriter)
PanelConsole
runGeneratePropertiesFile in interface PanelConsoleinstallData - The installation data
public boolean runConsoleFromPropertiesFile(AutomatedInstallData installData,
java.util.Properties p)
PanelConsole
runConsoleFromPropertiesFile in interface PanelConsoleinstallData - The installation datap - The the propertiespublic boolean runConsole(AutomatedInstallData idata)
PanelConsole
runConsole in interface PanelConsoleidata - The installation data *public void emitNotification(java.lang.String message)
AbstractUIHandler
emitNotification in interface AbstractUIHandlermessage - The notification.
public boolean emitWarning(java.lang.String title,
java.lang.String message)
AbstractUIHandler
emitWarning in interface AbstractUIHandlertitle - The message title (used for dialog name, might not be displayed)message - The warning message.
public void emitError(java.lang.String title,
java.lang.String message)
AbstractUIHandler
emitError in interface AbstractUIHandlertitle - The message title (used for dialog name, might not be displayed)message - The error message.
public void emitErrorAndBlockNext(java.lang.String title,
java.lang.String message)
AbstractUIHandler
emitErrorAndBlockNext in interface AbstractUIHandlertitle - The message title (used for dialog name, might not be displayed)message - The error message.
public int askQuestion(java.lang.String title,
java.lang.String question,
int choices)
AbstractUIHandler
askQuestion in interface AbstractUIHandlertitle - The title of the question (useful for dialogs). Might be null.question - The question.choices - The set of choices to present. Either CHOICES_YES_NO or CHOICES_YES_NO_CANCEL
public int askQuestion(java.lang.String title,
java.lang.String question,
int choices,
int default_choice)
AbstractUIHandler
askQuestion in interface AbstractUIHandlertitle - The title of the question (useful for dialogs). Might be null.question - The question.choices - The set of choices to present. Either CHOICES_YES_NO or CHOICES_YES_NO_CANCELdefault_choice - The default choice. One of ANSWER_CANCEL, ANSWER_YES or ANSWER_NO.
public void startAction(java.lang.String name,
int no_of_steps)
AbstractUIProgressHandler
startAction in interface AbstractUIProgressHandlername - The name of the action.no_of_steps - The number of steps the action consists of.public void stopAction()
AbstractUIProgressHandler
stopAction in interface AbstractUIProgressHandler
public void progress(int val,
java.lang.String msg)
AbstractUIProgressHandler
progress in interface AbstractUIProgressHandlerval - The substep which will be performed next.msg - An additional message describing the substep.
public void nextStep(java.lang.String packName,
int stepno,
int stepsize)
AbstractUIProgressHandler
nextStep in interface AbstractUIProgressHandlerpackName - The name of the step which starts now.stepno - The number of the step.stepsize - The number of sub-steps this step consists of.public void setSubStepNo(int no_of_substeps)
AbstractUIProgressHandler
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 | ||||||||