C# Класс Habanero.Faces.Base.WizardController

Controls the behaviour of a wizard, which guides users through a process one step at a time. Implementsts the IWizardController
Наследование: IWizardController
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddStep ( IWizardStep step ) : void

Adds a step to the Wizard. These are added in order. To add items out of order use the WizardSteps property.

CanCancel ( ) : bool

Can the Wizard Controller be cancelled in its current state. I.e. can all changes made by the Wizard to date be cancelled.

CanFinish ( ) : bool

Can the user select finish from when the wizard controller is in the current state.

CanMoveBack ( ) : bool

Checks if the Wizard Can proceed to the next step. Calls through to the IWizardStep.CanMoveBack

CanMoveOn ( string &message ) : bool

Checks if the Wizard can proceed to the next step. Calls through to the CanMoveOn method of the current IWizardStep.

CancelWizard ( ) : void

This provides a method which is called when the wizard is cancelled. The wizard controller can undo any changes that have occured up until that point so as to ensure that the objects are returned to their original state.

CompleteCurrentStep ( ) : void

Does any actions involved in the current wizard step when you move on to the next wizard step. E.g. Updates any Objects from User interface controls.

Finish ( ) : void

Method that is to be run when the Wizard is finished. This method should be overridden to do all persistance that is required. This raises the WizardFinished event which allows you to close forms or do anything else required.

GetCurrentStep ( ) : IWizardStep

Returns the step that the Wizard is currently on.

GetFirstStep ( ) : IWizardStep

Returns the First Step of the Wizard and sets the current step to that step.

GetNextStep ( ) : IWizardStep

Returns the next step in the Wizard and sets the current step to that step.

GetPreviousStep ( ) : IWizardStep

Returns the Previous Step and sets the step pointer to that step.

IsFirstStep ( ) : bool

Checks if the current Step is the first step.

IsLastStep ( ) : bool

Checks if the current step is the last step.

UndoCompleteCurrentStep ( ) : void

Undoes any actions that have been done by the current step when you move back to the previous step. It does this by calling the wizard step moveback

WizardController ( ) : System

Initiliases the Wizard. When the Wizard is created there is no current step, the first call to GetNextStep() will move to the first step.

Приватные методы

Метод Описание
CheckWizardStep ( ) : void
FireWizardFinishedEvent ( ) : void

Описание методов

AddStep() публичный Метод

Adds a step to the Wizard. These are added in order. To add items out of order use the WizardSteps property.
public AddStep ( IWizardStep step ) : void
step IWizardStep The IWizardStep to add.
Результат void

CanCancel() публичный Метод

Can the Wizard Controller be cancelled in its current state. I.e. can all changes made by the Wizard to date be cancelled.
public CanCancel ( ) : bool
Результат bool

CanFinish() публичный Метод

Can the user select finish from when the wizard controller is in the current state.
public CanFinish ( ) : bool
Результат bool

CanMoveBack() публичный Метод

Checks if the Wizard Can proceed to the next step. Calls through to the IWizardStep.CanMoveBack
public CanMoveBack ( ) : bool
Результат bool

CanMoveOn() публичный Метод

Checks if the Wizard can proceed to the next step. Calls through to the CanMoveOn method of the current IWizardStep.
public CanMoveOn ( string &message ) : bool
message string Describes why the Wizard cannot move on. Only applicable if CanMoveOn returns false.
Результат bool

CancelWizard() публичный Метод

This provides a method which is called when the wizard is cancelled. The wizard controller can undo any changes that have occured up until that point so as to ensure that the objects are returned to their original state.
public CancelWizard ( ) : void
Результат void

CompleteCurrentStep() публичный Метод

Does any actions involved in the current wizard step when you move on to the next wizard step. E.g. Updates any Objects from User interface controls.
public CompleteCurrentStep ( ) : void
Результат void

Finish() публичный Метод

Method that is to be run when the Wizard is finished. This method should be overridden to do all persistance that is required. This raises the WizardFinished event which allows you to close forms or do anything else required.
public Finish ( ) : void
Результат void

GetCurrentStep() публичный Метод

Returns the step that the Wizard is currently on.
public GetCurrentStep ( ) : IWizardStep
Результат IWizardStep

GetFirstStep() публичный Метод

Returns the First Step of the Wizard and sets the current step to that step.
public GetFirstStep ( ) : IWizardStep
Результат IWizardStep

GetNextStep() публичный Метод

Returns the next step in the Wizard and sets the current step to that step.
Thrown if the current step is the last step.
public GetNextStep ( ) : IWizardStep
Результат IWizardStep

GetPreviousStep() публичный Метод

Returns the Previous Step and sets the step pointer to that step.
Thrown if the current step is the first step.
public GetPreviousStep ( ) : IWizardStep
Результат IWizardStep

IsFirstStep() публичный Метод

Checks if the current Step is the first step.
public IsFirstStep ( ) : bool
Результат bool

IsLastStep() публичный Метод

Checks if the current step is the last step.
public IsLastStep ( ) : bool
Результат bool

UndoCompleteCurrentStep() публичный Метод

Undoes any actions that have been done by the current step when you move back to the previous step. It does this by calling the wizard step moveback
public UndoCompleteCurrentStep ( ) : void
Результат void

WizardController() публичный Метод

Initiliases the Wizard. When the Wizard is created there is no current step, the first call to GetNextStep() will move to the first step.
public WizardController ( ) : System
Результат System