com.izforge.izpack.panels
Class PacksPanelConsoleHelper

java.lang.Object
  extended by com.izforge.izpack.installer.PanelConsoleHelper
      extended by com.izforge.izpack.panels.PacksPanelConsoleHelper
All Implemented Interfaces:
PanelConsole

public class PacksPanelConsoleHelper
extends PanelConsoleHelper
implements PanelConsole

Console implementation for the PacksPanel.

Author:
Sergiy Shyrkov

Constructor Summary
PacksPanelConsoleHelper()
           
 
Method Summary
private static boolean askSelected(boolean defaultValue)
           
private  java.lang.String getI18n(LocaleDatabase langpack, java.lang.String key, java.lang.String defaultValue)
           
private static void out(java.lang.String message)
           
 boolean runConsole(AutomatedInstallData installData)
          Asks the panel to run in interactive console mode
 boolean runConsoleFromPropertiesFile(AutomatedInstallData installData, java.util.Properties p)
          Asks the panel to run and do its work, given a set of properties to use as variables
 boolean runGeneratePropertiesFile(AutomatedInstallData installData, java.io.PrintWriter printWriter)
          Asks the panel to return all inputed fields/variables in a string with a properties file style
 
Methods inherited from class com.izforge.izpack.installer.PanelConsoleHelper
askEndOfConsolePanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PacksPanelConsoleHelper

public PacksPanelConsoleHelper()
Method Detail

askSelected

private static boolean askSelected(boolean defaultValue)

out

private static void out(java.lang.String message)

getI18n

private java.lang.String getI18n(LocaleDatabase langpack,
                                 java.lang.String key,
                                 java.lang.String defaultValue)

runConsole

public boolean runConsole(AutomatedInstallData installData)
Description copied from interface: PanelConsole
Asks the panel to run in interactive console mode

Specified by:
runConsole in interface PanelConsole
Parameters:
installData - The installation data *

runConsoleFromPropertiesFile

public boolean runConsoleFromPropertiesFile(AutomatedInstallData installData,
                                            java.util.Properties p)
Description copied from interface: PanelConsole
Asks the panel to run and do its work, given a set of properties to use as variables

Specified by:
runConsoleFromPropertiesFile in interface PanelConsole
Parameters:
installData - The installation data
p - The the properties

runGeneratePropertiesFile

public boolean runGeneratePropertiesFile(AutomatedInstallData installData,
                                         java.io.PrintWriter printWriter)
Description copied from interface: PanelConsole
Asks the panel to return all inputed fields/variables in a string with a properties file style

Specified by:
runGeneratePropertiesFile in interface PanelConsole
Parameters:
installData - The installation data