com.izforge.izpack.panels.process
Class ProcessConsolePanel
java.lang.Object
com.izforge.izpack.installer.console.AbstractConsolePanel
com.izforge.izpack.panels.process.ProcessConsolePanel
- All Implemented Interfaces:
- AbstractUIHandler, ConsolePanel, AbstractUIProcessHandler
public class ProcessConsolePanel
- extends AbstractConsolePanel
- implements ConsolePanel, AbstractUIProcessHandler
|
Method Summary |
int |
askQuestion(String title,
String question,
int choices)
|
int |
askQuestion(String title,
String question,
int choices,
int default_choice)
|
int |
askWarningQuestion(String title,
String question,
int choices,
int default_choice)
|
void |
emitError(String title,
String message)
|
void |
emitErrorAndBlockNext(String title,
String message)
|
void |
emitNotification(String message)
|
boolean |
emitWarning(String title,
String message)
|
void |
finishProcess()
|
void |
finishProcessing(boolean unlockPrev,
boolean unlockNext)
|
boolean |
generateOptions(InstallData installData,
PrintWriter printWriter)
|
void |
logOutput(String message,
boolean stderr)
Log the given message. |
boolean |
run(InstallData installData,
Console console)
|
boolean |
run(InstallData installData,
Properties p)
|
void |
startProcess(String name)
Notify the user that a process has started. |
void |
startProcessing(int no_of_processes)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProcessConsolePanel
public ProcessConsolePanel(RulesEngine rules,
Resources resources,
Prompt prompt,
PlatformModelMatcher matcher,
PanelView<ConsolePanel> panel)
emitNotification
public void emitNotification(String message)
- Specified by:
emitNotification in interface AbstractUIHandler
emitWarning
public boolean emitWarning(String title,
String message)
- Specified by:
emitWarning in interface AbstractUIHandler
emitError
public void emitError(String title,
String message)
- Specified by:
emitError in interface AbstractUIHandler
emitErrorAndBlockNext
public void emitErrorAndBlockNext(String title,
String message)
askQuestion
public int askQuestion(String title,
String question,
int choices)
- Specified by:
askQuestion in interface AbstractUIHandler
askQuestion
public int askQuestion(String title,
String question,
int choices,
int default_choice)
- Specified by:
askQuestion in interface AbstractUIHandler
askWarningQuestion
public int askWarningQuestion(String title,
String question,
int choices,
int default_choice)
- Specified by:
askWarningQuestion in interface AbstractUIHandler
logOutput
public void logOutput(String message,
boolean stderr)
- Description copied from interface:
AbstractUIProcessHandler
- Log the given message.
- Specified by:
logOutput in interface AbstractUIProcessHandler
stderr - true if this is a message received from a program via stderr
startProcessing
public void startProcessing(int no_of_processes)
- Specified by:
startProcessing in interface AbstractUIProcessHandler
startProcess
public void startProcess(String name)
- Description copied from interface:
AbstractUIProcessHandler
- Notify the user that a process has started.
- Specified by:
startProcess in interface AbstractUIProcessHandler
finishProcess
public void finishProcess()
- Specified by:
finishProcess in interface AbstractUIProcessHandler
finishProcessing
public void finishProcessing(boolean unlockPrev,
boolean unlockNext)
- Specified by:
finishProcessing in interface AbstractUIProcessHandler
generateOptions
public boolean generateOptions(InstallData installData,
PrintWriter printWriter)
run
public boolean run(InstallData installData,
Properties p)
- Specified by:
run in interface ConsolePanel
run
public boolean run(InstallData installData,
Console console)
- Specified by:
run in interface ConsolePanel- Overrides:
run in class AbstractConsolePanel
Copyright © 2018. All rights reserved.