|
|||||||||
| 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.ProcessPanelConsoleHelper
public class ProcessPanelConsoleHelper
| Field Summary | |
|---|---|
private int |
currentJob
|
private int |
noOfJobs
|
| Fields inherited from interface com.izforge.izpack.util.AbstractUIHandler |
|---|
ANSWER_CANCEL, ANSWER_NO, ANSWER_YES, CHOICES_YES_NO, CHOICES_YES_NO_CANCEL |
| Constructor Summary | |
|---|---|
ProcessPanelConsoleHelper()
|
|
| 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 |
finishProcess()
|
void |
finishProcessing(boolean unlockPrev,
boolean unlockNext)
|
void |
logOutput(java.lang.String message,
boolean stderr)
Log the given message. |
boolean |
runConsole(AutomatedInstallData installData)
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 |
startProcess(java.lang.String name)
Notify the user that a process has started. |
void |
startProcessing(int no_of_processes)
|
| 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 noOfJobs
private int currentJob
| Constructor Detail |
|---|
public ProcessPanelConsoleHelper()
| Method Detail |
|---|
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 logOutput(java.lang.String message,
boolean stderr)
AbstractUIProcessHandler
logOutput in interface AbstractUIProcessHandlerstderr - true if this is a message received from a program via stderrpublic void startProcessing(int no_of_processes)
startProcessing in interface AbstractUIProcessHandlerpublic void startProcess(java.lang.String name)
AbstractUIProcessHandler
startProcess in interface AbstractUIProcessHandlerpublic void finishProcess()
finishProcess in interface AbstractUIProcessHandler
public void finishProcessing(boolean unlockPrev,
boolean unlockNext)
finishProcessing in interface AbstractUIProcessHandler
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 installData)
PanelConsole
runConsole in interface PanelConsoleinstallData - The installation data *
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||