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 java.lang.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(java.lang.String keyTitle)
           
Wizard(java.lang.String keyTitle, boolean modal)
           
Wizard(java.lang.String keyTitle, boolean modal, int width)
           
 
Method Summary
 void addListener(WizardListener l)
           
 void close()
           
 IWizardPanel<?> getCurrentPanel()
           
 org.eclipse.swt.widgets.Display getDisplay()
           
 java.lang.String getErrorMessage()
           
 org.eclipse.swt.widgets.Composite getPanel()
           
 org.eclipse.swt.widgets.Shell getWizardWindow()
           
 void onClose()
           
 void removeListener(WizardListener l)
           
 void setCurrentInfo(java.lang.String currentInfo)
           
 void setErrorMessage(java.lang.String errorMessage)
           
 void setFinishEnabled(boolean enabled)
           
 void setFirstPanel(IWizardPanel<?> panel)
           
 void setNextEnabled(boolean enabled)
           
 void setPreviousEnabled(boolean enabled)
           
 void setTitle(java.lang.String title)
           
 void setTitleAsResourceID(java.lang.String id)
           
 void setTitleKey(java.lang.String key)
           
 void switchToClose()
           
 void switchToClose(java.lang.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(java.lang.String keyTitle)

Wizard

public Wizard(java.lang.String keyTitle,
              boolean modal)

Wizard

public Wizard(java.lang.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(java.lang.String title)

setTitleAsResourceID

public void setTitleAsResourceID(java.lang.String id)

setCurrentInfo

public void setCurrentInfo(java.lang.String currentInfo)

setErrorMessage

public void setErrorMessage(java.lang.String errorMessage)

setTitleKey

public void setTitleKey(java.lang.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 java.lang.String getErrorMessage()

getDisplay

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

switchToClose

public void switchToClose()

switchToClose

public void switchToClose(java.lang.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)