com.izforge.izpack.panels.install
Class InstallConsolePanel

java.lang.Object
  extended by com.izforge.izpack.installer.console.AbstractConsolePanel
      extended by com.izforge.izpack.panels.install.InstallConsolePanel
All Implemented Interfaces:
ProgressListener, ConsolePanel

public class InstallConsolePanel
extends AbstractConsolePanel
implements ProgressListener

Install Panel console helper

Author:
Mounir el hajj

Constructor Summary
InstallConsolePanel(IUnpacker unpacker, PanelView<ConsolePanel> panel)
           
 
Method Summary
 void nextStep(String packName, int stepno, int stepsize)
           
 void progress(int val, String msg)
           
 void progress(String message)
          Invoked to notify progress.
 void restartAction(String name, String overallMessage, String tip, int steps)
          Invoked when an action restarts.
 boolean run(InstallData installData, Console console)
          Runs the panel using the specified console.
 boolean run(InstallData installData, Properties properties)
           
 void setSubStepNo(int no_of_substeps)
           
 void startAction(String name, int no_of_steps)
           
 void stopAction()
           
 
Methods inherited from class com.izforge.izpack.installer.console.AbstractConsolePanel
createInstallationRecord, 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

InstallConsolePanel

public InstallConsolePanel(IUnpacker unpacker,
                           PanelView<ConsolePanel> panel)
Method Detail

run

public boolean run(InstallData installData,
                   Properties properties)
Specified by:
run in interface ConsolePanel

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

startAction

public void startAction(String name,
                        int no_of_steps)
Specified by:
startAction in interface ProgressListener

stopAction

public void stopAction()
Specified by:
stopAction in interface ProgressListener

progress

public void progress(int val,
                     String msg)
Specified by:
progress in interface ProgressListener

nextStep

public void nextStep(String packName,
                     int stepno,
                     int stepsize)
Specified by:
nextStep in interface ProgressListener

setSubStepNo

public void setSubStepNo(int no_of_substeps)
Specified by:
setSubStepNo in interface ProgressListener

progress

public void progress(String message)
Invoked to notify progress.

This increments the current step.

Specified by:
progress in interface ProgressListener
Parameters:
message - a message describing the step

restartAction

public void restartAction(String name,
                          String overallMessage,
                          String tip,
                          int steps)
Invoked when an action restarts.

Specified by:
restartAction in interface ProgressListener
Parameters:
name - the name of the action
overallMessage - a message describing the overall progress
tip - a tip describing the current progress
steps - the number of steps the action consists of


Copyright © 2018. All rights reserved.