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
파일 보기 프로젝트 열기: Chillisoft/habanero.faces 1 사용 예제들

공개 메소드들

메소드 설명
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