@@ -0,0 +1,2906 @@
+/*%0A *  $Id$%0A *  IzPack%0A *  Copyright (C) 2004 Klaus Bartz%0A *%0A *  File :               ExtendedInstallPanel.java%0A *  Description :        A panel to launch the installation process.%0A *  Author's email :     bartzkau@users.berlios.de%0A *%0A *  This program is free software; you can redistribute it and/or%0A *  modify it under the terms of the GNU General Public License%0A *  as published by the Free Software Foundation; either version 2%0A *  of the License, or any later version.%0A *%0A *  This program is distributed in the hope that it will be useful,%0A *  but WITHOUT ANY WARRANTY; without even the implied warranty of%0A *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A *  GNU General Public License for more details.%0A *%0A *  You should have received a copy of the GNU General Public License%0A *  along with this program; if not, write to the Free Software%0A *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.%0A */%0Apackage com.izforge.izpack.panels;%0A%0A%0Aimport com.izforge.izpack.installer.InstallData;%0Aimport com.izforge.izpack.installer.InstallerFrame;%0Aimport com.izforge.izpack.util.ExtendedUIProgressHandler;%0A%0A/**%0A *  The install panel class. %0A * Launches the actual installation job with extensions for%0A * custom actions.%0A *%0A * @author     Klaus Bartz%0A */%0Apublic class ExtendedInstallPanel extends InstallPanel%0Aimplements ExtendedUIProgressHandler%0A%7B%0A  protected int currentStep = 0;%0A%0A%0A  /**%0A   *  The constructor.%0A   *%0A   * @param  parent  The parent window.%0A   * @param  idata   The installation data.%0A   */%0A   public ExtendedInstallPanel(InstallerFrame parent, InstallData idata)%0A  %7B%0A    super(parent, idata);%0A  %7D%0A%0A  /* (non-Javadoc)%0A   * @see com.izforge.izpack.util.ExtendedUIProgressHandler#startAction(java.lang.String, java.lang.String, java.lang.String, int)%0A   */%0A  public void restartAction(String name, String overallMsg, String tipMsg, int no_of_steps)%0A  %7B%0A    overallOpLabel.setText(overallMsg);%0A    tipLabel.setText(tipMsg);%0A    currentStep = 0;%0A    startAction(name, no_of_steps );%0A  %7D%0A  %0A  /**%0A   *  Normal progress indicator.%0A   *%0A   * @param  val  The progression value.%0A   * @param  msg  The progression message.%0A   */%0A  public void progress(int val, String msg)%0A  %7B%0A    packProgressBar.setValue(val + 1);%0A    packOpLabel.setText(msg);%0A    currentStep++;%0A  %7D%0A%0A%0A  /* (non-Javadoc)%0A   * @see com.izforge.izpack.util.ExtendedUIProgressHandler#progress(java.lang.String, java.lang.String)%0A   */%0A  public void progress(String stepMessage)%0A  %7B%0A    packOpLabel.setText(stepMessage);%0A    currentStep++;%0A    packProgressBar.setValue(currentStep);%0A  %7D%0A%0A  /**%0A   *  Pack changing.%0A   *%0A   * @param  packName  The pack name.%0A   * @param  stepno    The number of the pack.%0A   * @param  max       The new maximum progress.%0A   */%0A  public void nextStep(String packName, int stepno, int max)%0A  %7B%0A    currentStep = 0;%0A    super.nextStep(packName, stepno, max);%0A  %7D%0A%0A%7D%0A

Install panel with extensions for custom actions.