|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.izforge.izpack.installer.console.AbstractConsolePanel
public abstract class AbstractConsolePanel
Abstract implementation of the ConsolePanel interface.
| Constructor Summary | |
|---|---|
AbstractConsolePanel(PanelView<ConsolePanel> panel)
Constructs an AbstractConsolePanel. |
|
| Method Summary | |
|---|---|
void |
createInstallationRecord(IXMLElement rootElement)
Create th auto-xml |
boolean |
generateOptions(InstallData installData,
Options options)
Generates a properties file for each input field or variable. |
String |
getI18nStringForClass(String subkey,
InstallData installData)
Search for a proper translation key belonging to the panel implementation. |
String |
getI18nStringForClass(String subkey,
String alternateClass,
InstallData installData)
Search for a proper translation key belonging to the panel implementation. |
protected Panel |
getPanel()
Returns the panel. |
boolean |
handlePanelValidationResult(boolean valid)
Do some user interaction on the console depending on the result of a panel validation. |
protected void |
printHeadLine(InstallData installData,
Console console)
|
protected boolean |
promptEndPanel(InstallData installData,
Console console)
Prompts to end the console panel. |
protected boolean |
promptRerunPanel(InstallData installData,
Console console)
Prompts to re-run the panel or quit. |
boolean |
run(InstallData installData,
Console console)
Runs the panel in an interactive console. |
| 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.installer.console.ConsolePanel |
|---|
run |
| Constructor Detail |
|---|
public AbstractConsolePanel(PanelView<ConsolePanel> panel)
AbstractConsolePanel.
panel - the parent panel/view. May be null| Method Detail |
|---|
public boolean generateOptions(InstallData installData,
Options options)
ConsolePanel
generateOptions in interface ConsolePanelinstallData - the installation dataoptions - the options file to write to
true if the generation is successful, otherwise false
protected boolean promptEndPanel(InstallData installData,
Console console)
run(InstallData, Console). promptRerunPanel(InstallData, Console).
installData - the installation dateconsole - the console to use
true to continue, false to quit. If redisplaying the panel, the result of
run(InstallData, Console) is returned
protected boolean promptRerunPanel(InstallData installData,
Console console)
run(InstallData, Console).
installData - the installation dateconsole - the console to use
true to re-display, false to quit. If redisplaying the panel, the result of
run(InstallData, Console) is returnedprotected Panel getPanel()
null if no panel/view was supplied at constructionpublic void createInstallationRecord(IXMLElement rootElement)
ConsolePanel
createInstallationRecord in interface ConsolePanel
public boolean run(InstallData installData,
Console console)
ConsolePanel
run in interface ConsolePanelinstallData - the installation dataconsole - the console
true if the panel ran successfully, otherwise false
protected void printHeadLine(InstallData installData,
Console console)
public boolean handlePanelValidationResult(boolean valid)
ConsolePanel
handlePanelValidationResult in interface ConsolePanelvalid - whether the validation has been successful
DataValidator
public String getI18nStringForClass(String subkey,
InstallData installData)
subkey - the subkey for the string which should be returned
public String getI18nStringForClass(String subkey,
String alternateClass,
InstallData installData)
subkey - the subkey for the string which should be returnedalternateClass - the short name of the class which should be used if no string is
present with the runtime class name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||