com.izforge.izpack.panels.userinput
Class UserInputConsolePanel

java.lang.Object
  extended by com.izforge.izpack.installer.console.AbstractConsolePanel
      extended by com.izforge.izpack.panels.userinput.UserInputConsolePanel
All Implemented Interfaces:
ConsolePanel

public class UserInputConsolePanel
extends AbstractConsolePanel

The user input panel console implementation.

Author:
Mounir El Hajj

Constructor Summary
UserInputConsolePanel(Resources resources, ObjectFactory factory, RulesEngine rules, PlatformModelMatcher matcher, Console console, Prompt prompt, PanelView<ConsolePanel> panelView, InstallData installData)
          Constructs an UserInputConsolePanel.
 
Method Summary
 void createInstallationRecord(IXMLElement rootElement)
          Creates an installation record for unattended installations on UserInputPanel, created during GUI installations.
 boolean generateOptions(InstallData installData, Options options)
           
 boolean handlePanelValidationResult(boolean valid)
           
 boolean run(InstallData installData, Console console)
          Runs the panel using the specified console.
 boolean run(InstallData installData, Properties properties)
           
 
Methods inherited from class com.izforge.izpack.installer.console.AbstractConsolePanel
getI18nStringForClass, getI18nStringForClass, getPanel, printHeadLine, promptEndPanel, promptRerunPanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserInputConsolePanel

public UserInputConsolePanel(Resources resources,
                             ObjectFactory factory,
                             RulesEngine rules,
                             PlatformModelMatcher matcher,
                             Console console,
                             Prompt prompt,
                             PanelView<ConsolePanel> panelView,
                             InstallData installData)
Constructs an UserInputConsolePanel.

Parameters:
resources - the resources
factory - the object factory
rules - the rules
matcher - the platform-model matcher
console - the console
prompt - the prompt
panelView - the parent panel/view
installData - the install data
Method Detail

run

public boolean run(InstallData installData,
                   Properties properties)

generateOptions

public boolean generateOptions(InstallData installData,
                               Options options)
Specified by:
generateOptions in interface ConsolePanel
Overrides:
generateOptions in class AbstractConsolePanel

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 AbstractConsolePanel
Parameters:
installData - the installation data
console - the console
Returns:
true if the panel ran successfully, otherwise false

createInstallationRecord

public void createInstallationRecord(IXMLElement rootElement)
Creates an installation record for unattended installations on UserInputPanel, created during GUI installations.

Specified by:
createInstallationRecord in interface ConsolePanel
Overrides:
createInstallationRecord in class AbstractConsolePanel

handlePanelValidationResult

public boolean handlePanelValidationResult(boolean valid)
Specified by:
handlePanelValidationResult in interface ConsolePanel
Overrides:
handlePanelValidationResult in class AbstractConsolePanel


Copyright © 2018. All rights reserved.