com.izforge.izpack.panels.path
Class PathInputConsolePanel

java.lang.Object
  extended by com.izforge.izpack.installer.console.AbstractConsolePanel
      extended by com.izforge.izpack.panels.path.PathInputConsolePanel
All Implemented Interfaces:
ConsolePanel
Direct Known Subclasses:
TargetConsolePanel

public class PathInputConsolePanel
extends AbstractConsolePanel


Constructor Summary
PathInputConsolePanel(PanelView<ConsolePanel> panel, InstallData installData, Prompt prompt)
          Constructs an PathInputConsolePanel.
 
Method Summary
protected  boolean checkCreateDirectory(File dir, Console console)
          Determines if the specified directory can be created.
protected  boolean checkOverwrite(File dir, Console console)
          Determines if an existing directory can be written to.
 boolean run(InstallData installData, Properties properties)
           
 
Methods inherited from class com.izforge.izpack.installer.console.AbstractConsolePanel
createInstallationRecord, generateOptions, getI18nStringForClass, getI18nStringForClass, getPanel, handlePanelValidationResult, printHeadLine, promptEndPanel, promptRerunPanel, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathInputConsolePanel

public PathInputConsolePanel(PanelView<ConsolePanel> panel,
                             InstallData installData,
                             Prompt prompt)
Constructs an PathInputConsolePanel.

Parameters:
panel - the parent panel/view. May be null
installData - the install data
prompt - the console prompt
Method Detail

run

public boolean run(InstallData installData,
                   Properties properties)

checkCreateDirectory

protected boolean checkCreateDirectory(File dir,
                                       Console console)
Determines if the specified directory can be created.

Parameters:
dir - the directory
Returns:
true if the directory may be created, otherwise false

checkOverwrite

protected boolean checkOverwrite(File dir,
                                 Console console)
Determines if an existing directory can be written to.

Parameters:
dir - the directory
Returns:
true if the directory can be written to, otherwise false


Copyright © 2018. All rights reserved.