com.izforge.izpack.panels.htmlinfo
Class HTMLInfoConsolePanel

java.lang.Object
  extended by com.izforge.izpack.installer.console.AbstractConsolePanel
      extended by com.izforge.izpack.installer.console.AbstractTextConsolePanel
          extended by com.izforge.izpack.panels.htmlinfo.HTMLInfoConsolePanel
All Implemented Interfaces:
ConsolePanel
Direct Known Subclasses:
HTMLHelloConsolePanel

public class HTMLInfoConsolePanel
extends AbstractTextConsolePanel

Console implementation of HTMLInfoPanel.

Author:
Tim Anderson

Constructor Summary
HTMLInfoConsolePanel(PanelView<ConsolePanel> panel, Resources resources)
           
HTMLInfoConsolePanel(PanelView<ConsolePanel> panel, Resources resources, String resourcePrefix)
           
 
Method Summary
protected  String getText()
          Returns the text to display.
 boolean run(InstallData installData, Console console)
          Runs the panel using the specified console.
 
Methods inherited from class com.izforge.izpack.installer.console.AbstractTextConsolePanel
removeHTML, run
 
Methods inherited from class com.izforge.izpack.installer.console.AbstractConsolePanel
createInstallationRecord, generateOptions, getI18nStringForClass, getI18nStringForClass, getPanel, handlePanelValidationResult, printHeadLine, promptEndPanel, promptRerunPanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLInfoConsolePanel

public HTMLInfoConsolePanel(PanelView<ConsolePanel> panel,
                            Resources resources)

HTMLInfoConsolePanel

public HTMLInfoConsolePanel(PanelView<ConsolePanel> panel,
                            Resources resources,
                            String resourcePrefix)
Method Detail

run

public boolean run(InstallData installData,
                   Console console)
Runs the panel using the specified console.

If there is no text to display, the panel will return false.

Specified by:
run in interface ConsolePanel
Overrides:
run in class AbstractTextConsolePanel
Parameters:
installData - the installation data
console - the console
Returns:
true if the panel ran successfully, otherwise false

getText

protected String getText()
Returns the text to display.

Specified by:
getText in class AbstractTextConsolePanel
Returns:
the text. A null indicates failure


Copyright © 2018. All rights reserved.