com.izforge.izpack.panels.checkedhello
Class CheckedHelloConsolePanel

java.lang.Object
  extended by com.izforge.izpack.installer.console.AbstractConsolePanel
      extended by com.izforge.izpack.panels.hello.HelloConsolePanel
          extended by com.izforge.izpack.panels.checkedhello.CheckedHelloConsolePanel
All Implemented Interfaces:
ConsolePanel

public class CheckedHelloConsolePanel
extends HelloConsolePanel

Console implementation of the CheckedHelloPanel.

Author:
Tim Anderson

Constructor Summary
CheckedHelloConsolePanel(RegistryDefaultHandler handler, InstallData installData, Prompt prompt, PanelView<ConsolePanel> panel)
          Constructs a CheckedHelloConsolePanel.
 
Method Summary
protected  boolean multipleInstall(InstallData installData)
          Invoked if the product is already installed.
 boolean run(InstallData installData, Console console)
          Runs the panel using the specified console.
 
Methods inherited from class com.izforge.izpack.panels.hello.HelloConsolePanel
display, 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

CheckedHelloConsolePanel

public CheckedHelloConsolePanel(RegistryDefaultHandler handler,
                                InstallData installData,
                                Prompt prompt,
                                PanelView<ConsolePanel> panel)
                         throws NativeLibException
Constructs a CheckedHelloConsolePanel.

Parameters:
handler - the registry handler
installData - the installation data
prompt - the prompt
panel - the parent panel/view. May be null
Throws:
NativeLibException - for any native library error
Method Detail

run

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

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

multipleInstall

protected boolean multipleInstall(InstallData installData)
Invoked if the product is already installed.

This prompts the user whether to install twice or quit.

Parameters:
installData - the installation data
Returns:
true to install again, false to quit


Copyright © 2018. All rights reserved.