com.izforge.izpack.panels.userpath
Class UserPathConsolePanel

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

public class UserPathConsolePanel
extends AbstractConsolePanel

The UserPath panel console helper class. Based on the Target panel console helper

Author:
Mounir El Hajj, Dustin Kut Moy Cheung

Field Summary
static String PATH_ELEMENT
           
static String PATH_PACK_DEPENDS
           
static String PATH_VARIABLE
           
static String USER_PATH_EXISTS
           
static String USER_PATH_INFO
           
static String USER_PATH_NODIR
           
 
Constructor Summary
UserPathConsolePanel(PanelView<ConsolePanel> panel, InstallData installData)
          Constructs an UserPathConsolePanel.
 
Method Summary
 void createInstallationRecord(IXMLElement panelRoot)
           
 boolean generateOptions(InstallData installData, PrintWriter printWriter)
           
 boolean run(InstallData installData, Console console)
           
 boolean run(InstallData installData, Properties p)
           
 
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
 

Field Detail

PATH_VARIABLE

public static final String PATH_VARIABLE

PATH_PACK_DEPENDS

public static final String PATH_PACK_DEPENDS

PATH_ELEMENT

public static final String PATH_ELEMENT

USER_PATH_INFO

public static final String USER_PATH_INFO

USER_PATH_NODIR

public static final String USER_PATH_NODIR

USER_PATH_EXISTS

public static final String USER_PATH_EXISTS
Constructor Detail

UserPathConsolePanel

public UserPathConsolePanel(PanelView<ConsolePanel> panel,
                            InstallData installData)
Constructs an UserPathConsolePanel.

Parameters:
panel - the parent panel/view. May be null
Method Detail

generateOptions

public boolean generateOptions(InstallData installData,
                               PrintWriter printWriter)

run

public boolean run(InstallData installData,
                   Properties p)

run

public boolean run(InstallData installData,
                   Console console)
Specified by:
run in interface ConsolePanel
Overrides:
run in class AbstractConsolePanel

createInstallationRecord

public void createInstallationRecord(IXMLElement panelRoot)
Specified by:
createInstallationRecord in interface ConsolePanel
Overrides:
createInstallationRecord in class AbstractConsolePanel


Copyright © 2018. All rights reserved.