C# Class Habanero.Faces.Win.WizardControlWin

Provides the controls for a wizard, which guides users through a process one step at a time.
Inheritance: UserControlWin, IWizardControl
Afficher le fichier Open project: Chillisoft/habanero.faces Class Usage Examples

Méthodes publiques

Méthode Description
Finish ( ) : void

Calls the finish method on the controller to being the completion process. If this is successful the Finished event is fired.

Next ( ) : void

Attempts to go to the next step in the wizard. If this is disallowed by the wizard controller a MessagePosted event will be fired.

Previous ( ) : void

Attempts to go to the previous step in the wizard.

Start ( ) : void

Starts the wizard by moving to the first step.

WizardControlWin ( IWizardController wizardController, IControlFactory controlFactory ) : System

Initialises the WizardControl with the IWizardController. No logic is performed other than storing the wizard controller.

Méthodes protégées

Méthode Description
CreateButtonPanel ( ) : IPanel

Creates all the Previous Next etc Buttons and puts them on a Panel.

CreateCancelButton ( Size buttonSize ) : IButton
CreateFinishButton ( Size buttonSize ) : IButton
CreateNextButton ( Size buttonSize ) : IButton
CreatePreviousButton ( Size buttonSize ) : IButton
DoIfCanMoveOn ( System.Operation operation ) : void
FireFinished ( ) : void
FireMessagePosted ( string message ) : void
FireStepChanged ( IWizardStep wizardStep ) : void
GetButtonSize ( ) : Size
GetLayoutManager ( IPanel buttonPanel ) : FlowLayoutManager
SetButtonState ( ) : void

Private Methods

Méthode Description
CancelButton_Click ( object sender, EventArgs e ) : void
FinishButton_Click ( object sender, EventArgs e ) : void
NextButton_Click ( object sender, EventArgs e ) : void
PreviousButton_Click ( object sender, EventArgs e ) : void
SetStep ( IWizardStep step ) : void

Method Details

CreateButtonPanel() protected méthode

Creates all the Previous Next etc Buttons and puts them on a Panel.
protected CreateButtonPanel ( ) : IPanel
Résultat IPanel

CreateCancelButton() protected méthode

protected CreateCancelButton ( Size buttonSize ) : IButton
buttonSize System.Drawing.Size
Résultat IButton

CreateFinishButton() protected méthode

protected CreateFinishButton ( Size buttonSize ) : IButton
buttonSize System.Drawing.Size
Résultat IButton

CreateNextButton() protected méthode

protected CreateNextButton ( Size buttonSize ) : IButton
buttonSize System.Drawing.Size
Résultat IButton

CreatePreviousButton() protected méthode

protected CreatePreviousButton ( Size buttonSize ) : IButton
buttonSize System.Drawing.Size
Résultat IButton

DoIfCanMoveOn() protected méthode

protected DoIfCanMoveOn ( System.Operation operation ) : void
operation System.Operation
Résultat void

Finish() public méthode

Calls the finish method on the controller to being the completion process. If this is successful the Finished event is fired.
public Finish ( ) : void
Résultat void

FireFinished() protected méthode

protected FireFinished ( ) : void
Résultat void

FireMessagePosted() protected méthode

protected FireMessagePosted ( string message ) : void
message string
Résultat void

FireStepChanged() protected méthode

protected FireStepChanged ( IWizardStep wizardStep ) : void
wizardStep IWizardStep
Résultat void

GetButtonSize() protected static méthode

protected static GetButtonSize ( ) : Size
Résultat System.Drawing.Size

GetLayoutManager() protected méthode

protected GetLayoutManager ( IPanel buttonPanel ) : FlowLayoutManager
buttonPanel IPanel
Résultat Habanero.Faces.Base.FlowLayoutManager

Next() public méthode

Attempts to go to the next step in the wizard. If this is disallowed by the wizard controller a MessagePosted event will be fired.
public Next ( ) : void
Résultat void

Previous() public méthode

Attempts to go to the previous step in the wizard.
If the wizard is on the first step this exception will be thrown.
public Previous ( ) : void
Résultat void

SetButtonState() protected méthode

protected SetButtonState ( ) : void
Résultat void

Start() public méthode

Starts the wizard by moving to the first step.
public Start ( ) : void
Résultat void

WizardControlWin() public méthode

Initialises the WizardControl with the IWizardController. No logic is performed other than storing the wizard controller.
public WizardControlWin ( IWizardController wizardController, IControlFactory controlFactory ) : System
wizardController IWizardController
controlFactory IControlFactory The control factory that this control will use to create a button
Résultat System