org.gudy.azureus2.ui.swt.wizard
Class Wizard

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.wizard.Wizard
Direct Known Subclasses:
BetaWizard, ConfigureWizard, ExportTorrentWizard, ImportTorrentWizard, InstallPluginWizard, IpCheckerWizard, NewTorrentWizard, SpeedTestWizard, UnInstallPluginWizard

public class Wizard
extends Object

Author:
Olivier

Field Summary
protected  org.eclipse.swt.widgets.Button cancel
           
protected  org.eclipse.swt.widgets.Button finish
           
protected  org.eclipse.swt.widgets.Button next
           
protected  org.eclipse.swt.widgets.Button previous
           
 
Constructor Summary
Wizard(boolean modal)
           
Wizard(boolean modal, int width)
           
Wizard(String keyTitle)
           
Wizard(String keyTitle, boolean modal)
           
Wizard(String keyTitle, boolean modal, int width)
           
 
Method Summary
 void addListener(WizardListener l)
           
 void close()
           
 IWizardPanel<?> getCurrentPanel()
           
 org.eclipse.swt.widgets.Display getDisplay()
           
 String getErrorMessage()
           
 org.eclipse.swt.widgets.Composite getPanel()
           
 org.eclipse.swt.widgets.Shell getWizardWindow()
           
 void onClose()
           
 void removeListener(WizardListener l)
           
 void setCurrentInfo(String currentInfo)
           
 void setErrorMessage(String errorMessage)
           
 void setFinishEnabled(boolean enabled)
           
 void setFirstPanel(IWizardPanel<?> panel)
           
 void setNextEnabled(boolean enabled)
           
 void setPreviousEnabled(boolean enabled)
           
 void setTitle(String title)
           
 void setTitleAsResourceID(String id)
           
 void setTitleKey(String key)
           
 void switchToClose()
           
 void switchToClose(Runnable do_it)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

previous

protected org.eclipse.swt.widgets.Button previous

next

protected org.eclipse.swt.widgets.Button next

finish

protected org.eclipse.swt.widgets.Button finish

cancel

protected org.eclipse.swt.widgets.Button cancel
Constructor Detail

Wizard

public Wizard(String keyTitle)

Wizard

public Wizard(String keyTitle,
              boolean modal)

Wizard

public Wizard(String keyTitle,
              boolean modal,
              int width)

Wizard

public Wizard(boolean modal)

Wizard

public Wizard(boolean modal,
              int width)
Method Detail

getPanel

public org.eclipse.swt.widgets.Composite getPanel()

setTitle

public void setTitle(String title)

setTitleAsResourceID

public void setTitleAsResourceID(String id)

setCurrentInfo

public void setCurrentInfo(String currentInfo)

setErrorMessage

public void setErrorMessage(String errorMessage)

setTitleKey

public void setTitleKey(String key)

setNextEnabled

public void setNextEnabled(boolean enabled)

setPreviousEnabled

public void setPreviousEnabled(boolean enabled)

setFinishEnabled

public void setFinishEnabled(boolean enabled)

setFirstPanel

public void setFirstPanel(IWizardPanel<?> panel)

getWizardWindow

public org.eclipse.swt.widgets.Shell getWizardWindow()

getErrorMessage

public String getErrorMessage()

getDisplay

public org.eclipse.swt.widgets.Display getDisplay()

switchToClose

public void switchToClose()

switchToClose

public void switchToClose(Runnable do_it)

close

public void close()

onClose

public void onClose()

getCurrentPanel

public IWizardPanel<?> getCurrentPanel()
Returns:
Returns the currentPanel.

addListener

public void addListener(WizardListener l)

removeListener

public void removeListener(WizardListener l)