org.gudy.azureus2.ui.swt.shells
Class AbstractWizardPage

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.shells.AbstractWizardPage
All Implemented Interfaces:
IWizardPage

public abstract class AbstractWizardPage
extends Object
implements IWizardPage


Field Summary
static String BUTTON_BACK
           
static String BUTTON_CANCEL
           
static String BUTTON_NEXT
           
static String BUTTON_OK
           
protected  org.eclipse.swt.events.SelectionListener defaultButtonListener
           
 
Constructor Summary
AbstractWizardPage(MultipageWizard wizard)
           
 
Method Summary
protected  org.eclipse.swt.widgets.Button createButton(String buttonID, String buttonText, org.eclipse.swt.events.SelectionListener listener)
           
protected  void createButtons(org.eclipse.swt.widgets.Composite buttonPanel)
          Default buttons include Cancel, OK, Next, and Back Subclasses may override to add more buttons or create a custom set of buttons
 org.eclipse.swt.widgets.Composite createControls(org.eclipse.swt.widgets.Composite parent)
          Returns the main Composite where subclasses can create controls
protected  void enableButton(String buttonID, boolean value)
          Enable/Disable the button with the given id
 void fullScreen(boolean isFullScreen)
           
protected  org.eclipse.swt.widgets.Button getButton(String buttonID)
          Return the Button with the given id; returns null if button is not found
 org.eclipse.swt.widgets.Control getControl()
           
 String getDesciption()
           
 String getTitle()
           
 String getWindowTitle()
           
 MultipageWizard getWizard()
           
 boolean isComplete()
           
 boolean isInitOnStartup()
           
 void performAboutToBeHidden()
           
 void performAboutToBeShown()
           
 void performBack()
          Called when the default Back button is pressed
 void performCancel()
          Called when the default Cancel button is pressed
 void performDispose()
           
 void performFinish()
           
 void performNext()
          Called when the default Next button is pressed
 void performOK()
          called when the default OK button is pressed
 boolean setComplete()
           
protected  void showButton(String buttonID, boolean value)
          Show or hide the button with the given id
 
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.shells.IWizardPage
getPageID
 

Field Detail

BUTTON_OK

public static final String BUTTON_OK
See Also:
Constant Field Values

BUTTON_CANCEL

public static final String BUTTON_CANCEL
See Also:
Constant Field Values

BUTTON_NEXT

public static final String BUTTON_NEXT
See Also:
Constant Field Values

BUTTON_BACK

public static final String BUTTON_BACK
See Also:
Constant Field Values

defaultButtonListener

protected org.eclipse.swt.events.SelectionListener defaultButtonListener
Constructor Detail

AbstractWizardPage

public AbstractWizardPage(MultipageWizard wizard)
Method Detail

createControls

public org.eclipse.swt.widgets.Composite createControls(org.eclipse.swt.widgets.Composite parent)
Returns the main Composite where subclasses can create controls

Specified by:
createControls in interface IWizardPage

fullScreen

public void fullScreen(boolean isFullScreen)

createButtons

protected void createButtons(org.eclipse.swt.widgets.Composite buttonPanel)
Default buttons include Cancel, OK, Next, and Back Subclasses may override to add more buttons or create a custom set of buttons

Parameters:
buttonPanel -

createButton

protected org.eclipse.swt.widgets.Button createButton(String buttonID,
                                                      String buttonText,
                                                      org.eclipse.swt.events.SelectionListener listener)

enableButton

protected void enableButton(String buttonID,
                            boolean value)
Enable/Disable the button with the given id

Parameters:
buttonID -
value -

showButton

protected void showButton(String buttonID,
                          boolean value)
Show or hide the button with the given id

Parameters:
buttonID -
value -

getButton

protected org.eclipse.swt.widgets.Button getButton(String buttonID)
Return the Button with the given id; returns null if button is not found

Parameters:
buttonID -
Returns:

performOK

public void performOK()
called when the default OK button is pressed


performCancel

public void performCancel()
Called when the default Cancel button is pressed


performNext

public void performNext()
Called when the default Next button is pressed


performBack

public void performBack()
Called when the default Back button is pressed


getControl

public org.eclipse.swt.widgets.Control getControl()
Specified by:
getControl in interface IWizardPage

getWizard

public MultipageWizard getWizard()
Specified by:
getWizard in interface IWizardPage

getDesciption

public String getDesciption()
Specified by:
getDesciption in interface IWizardPage

getTitle

public String getTitle()
Specified by:
getTitle in interface IWizardPage

getWindowTitle

public String getWindowTitle()
Specified by:
getWindowTitle in interface IWizardPage

isComplete

public boolean isComplete()
Specified by:
isComplete in interface IWizardPage

performDispose

public void performDispose()
Specified by:
performDispose in interface IWizardPage

performFinish

public void performFinish()
Specified by:
performFinish in interface IWizardPage

setComplete

public boolean setComplete()
Specified by:
setComplete in interface IWizardPage

performAboutToBeHidden

public void performAboutToBeHidden()
Specified by:
performAboutToBeHidden in interface IWizardPage

performAboutToBeShown

public void performAboutToBeShown()
Specified by:
performAboutToBeShown in interface IWizardPage

isInitOnStartup

public boolean isInitOnStartup()
Specified by:
isInitOnStartup in interface IWizardPage