org.gudy.azureus2.ui.swt.wizard
Class AbstractWizardPanel<W extends Wizard>

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.wizard.AbstractWizardPanel<W>
All Implemented Interfaces:
IWizardPanel<W>
Direct Known Subclasses:
BetaWizardStart, BYOPanel, ChooseServicePanel, DirectoryPanel, ExportTorrentWizardFinishPanel, ExportTorrentWizardInputPanel, ExportTorrentWizardOutputPanel, FilePanel, FinishPanel, ImportTorrentWizardFinishPanel, ImportTorrentWizardInputPanel, ImportTorrentWizardOutputPanel, IPWFilePanel, IPWFinishPanel, IPWInstallModePanel, IPWListPanel, IPWModePanel, LanguagePanel, ModePanel, MultiTrackerPanel, NatPanel, ProgressPanel, ProgressPanel, SavePathPanel, SingleFilePanel, SpeedTestFinishPanel, SpeedTestPanel, SpeedTestSelector, SpeedTestSetLimitPanel, TransferPanel2, UIPWFinishPanel, UIPWListPanel, WebSeedPanel, WelcomePanel

public abstract class AbstractWizardPanel<W extends Wizard>
extends java.lang.Object
implements IWizardPanel<W>

Author:
Olivier

Field Summary
protected  IWizardPanel<W> previousPanel
           
protected  W wizard
           
 
Constructor Summary
AbstractWizardPanel(W wizard, IWizardPanel<W> previousPanel)
           
 
Method Summary
 void cancelled()
           
 void finish()
           
 IWizardPanel<W> getFinishPanel()
           
 IWizardPanel<W> getNextPanel()
           
 IWizardPanel<W> getPreviousPanel()
           
 boolean isFinishEnabled()
           
 boolean isFinishSelectionOK()
          This method is called when the "finish" button is pressed.
 boolean isNextEnabled()
           
 boolean isPreviousEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gudy.azureus2.ui.swt.wizard.IWizardPanel
show
 

Field Detail

previousPanel

protected IWizardPanel<W extends Wizard> previousPanel

wizard

protected W extends Wizard wizard
Constructor Detail

AbstractWizardPanel

public AbstractWizardPanel(W wizard,
                           IWizardPanel<W> previousPanel)
Method Detail

isPreviousEnabled

public boolean isPreviousEnabled()
Specified by:
isPreviousEnabled in interface IWizardPanel<W extends Wizard>

isNextEnabled

public boolean isNextEnabled()
Specified by:
isNextEnabled in interface IWizardPanel<W extends Wizard>

isFinishEnabled

public boolean isFinishEnabled()
Specified by:
isFinishEnabled in interface IWizardPanel<W extends Wizard>

getPreviousPanel

public IWizardPanel<W> getPreviousPanel()
Specified by:
getPreviousPanel in interface IWizardPanel<W extends Wizard>

getNextPanel

public IWizardPanel<W> getNextPanel()
Specified by:
getNextPanel in interface IWizardPanel<W extends Wizard>

getFinishPanel

public IWizardPanel<W> getFinishPanel()
Specified by:
getFinishPanel in interface IWizardPanel<W extends Wizard>

isFinishSelectionOK

public boolean isFinishSelectionOK()
Description copied from interface: IWizardPanel
This method is called when the "finish" button is pressed. It allows operations to be carried out before the "finish" panel is shown.

Specified by:
isFinishSelectionOK in interface IWizardPanel<W extends Wizard>
Returns:
true - carry on and show the finish panel; false - operation failed, leave on current panel

cancelled

public void cancelled()
Specified by:
cancelled in interface IWizardPanel<W extends Wizard>

finish

public void finish()
Specified by:
finish in interface IWizardPanel<W extends Wizard>