com.izforge.izpack.panels.shortcut
Class ShortcutConsolePanel

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

public class ShortcutConsolePanel
extends AbstractConsolePanel

Console implementation of the ShortcutPanel.

Author:
Tim Anderson

Constructor Summary
ShortcutConsolePanel(InstallData installData, Resources resources, UninstallData uninstallData, Housekeeper housekeeper, TargetFactory factory, InstallerListeners listeners, PlatformModelMatcher matcher, Prompt prompt, PanelView<ConsolePanel> panel)
          Constructs a ShortcutConsolePanel.
 
Method Summary
 void createInstallationRecord(IXMLElement panelRoot)
           
 boolean run(InstallData installData, Console console)
          Runs the panel using the specified console.
 boolean run(InstallData installData, Properties properties)
          Runs the panel using the supplied properties.
 
Methods inherited from class com.izforge.izpack.installer.console.AbstractConsolePanel
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

ShortcutConsolePanel

public ShortcutConsolePanel(InstallData installData,
                            Resources resources,
                            UninstallData uninstallData,
                            Housekeeper housekeeper,
                            TargetFactory factory,
                            InstallerListeners listeners,
                            PlatformModelMatcher matcher,
                            Prompt prompt,
                            PanelView<ConsolePanel> panel)
Constructs a ShortcutConsolePanel.

Parameters:
installData - the installation data
resources - the resources
uninstallData - the uninstallation data
housekeeper - the housekeeper
factory - the target factory
listeners - the installation listeners
matcher - the platform-model matcher
prompt - the prompt
panel - the parent panel/view
Method Detail

run

public boolean run(InstallData installData,
                   Properties properties)
Runs the panel using the supplied properties.

Parameters:
installData - the installation data
properties - the properties
Returns:
true if the installation is successful, otherwise false

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 panelRoot)
Specified by:
createInstallationRecord in interface ConsolePanel
Overrides:
createInstallationRecord in class AbstractConsolePanel


Copyright © 2018. All rights reserved.