PHP 클래스 Prado\Web\UI\WebControls\TWizard

TWizard splits a large form and presents the user with a series of smaller forms to complete. TWizard is analogous to the installation wizard commonly used to install software in Windows. The smaller forms are called wizard steps ({@link TWizardStep}, which can be accessed via {@link getWizardSteps WizardSteps}. In template, wizard steps can be added into a wizard using the following syntax, content in step 1, may contain other controls content in step 2, may contain other controls Each wizard step can be one of the following types: - Start : the first step in the wizard. - Step : the internal steps in the wizard. - Finish : the last step that allows user interaction. - Complete : the step that shows a summary to user (no interaction is allowed). - Auto : the step type is determined by wizard automatically. At any time, only one step is visible to end-users, which can be obtained by {@link getActiveStep ActiveStep}. Its index in the step collection is given by {@link getActiveStepIndex ActiveStepIndex}. Wizard content can be customized in many ways. The layout of a wizard consists of four parts: header, step content, navigation and side bar. Their content are affected by the following properties, respectively, - header: {@link setHeaderText HeaderText} and {@link setHeaderTemplate HeaderTemplate}. If both are present, the latter takes precedence. - step: {@link getWizardSteps WizardSteps}. - navigation: {@link setStartNavigationTemplate StartNavigationTemplate}, {@link setStepNavigationTemplate StepNavigationTemplate}, {@link setFinishNavigationTemplate FinishNavigationTemplate}. Default templates will be used if above templates are not set. - side bar: {@link setSideBarTemplate SideBarTemplate}. A default template will be used if this template is not set. Its visibility is toggled by {@link setShowSideBar ShowSideBar}. The style of these wizard layout components can be customized via the following style properties, - header: {@link getHeaderStyle HeaderStyle}. - step: {@link getStepStyle StepStyle}. - navigation: {@link getNavigationStyle NavigationStyle}, {@link getStartNextButtonStyle StartNextButtonStyle}, {@link getStepNextButtonStyle StepNextButtonStyle}, {@link getStepPreviousButtonStyle StepPreviousButtonStyle}, {@link getFinishPreviousButtonStyle FinishPreviousButtonStyle}, {@link getFinishCompleteButtonStyle FinishCompleteButtonStyle}, {@link getCancelButtonStyle CancelButtonStyle}. - side bar: {@link getSideBarStyle SideBarStyle} and {@link getSideBarButtonStyle SideBarButtonStyle}.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends TWebControl, implements Prado\Web\UI\INamingContainer
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
addParsedObject ( $object ) Adds {@link TWizardStep} objects into step collection.
addedWizardStep ( $step ) Adds a wizard step to the multiview.
bubbleEvent ( $sender, $param ) Handles bubbled events.
createChildControls ( ) Creates child controls within the wizard
dataListItemCommand ( $sender, $param ) Event handler for sidebar datalist's OnItemCommand event.
dataListItemDataBound ( $sender, $param ) Event handler for sidebar datalist's OnItemDataBound event.
getActiveStep ( ) : TWizardStep
getActiveStepIndex ( ) : integer
getCancelButtonStyle ( ) : TWizardNavigationButtonStyle
getCancelDestinationUrl ( ) : string
getFinishCompleteButtonStyle ( ) : TWizardNavigationButtonStyle
getFinishDestinationUrl ( ) : string
getFinishNavigation ( ) : TWizardNavigationContainer
getFinishNavigationTemplate ( ) : ITemplate
getFinishPreviousButtonStyle ( ) : TWizardNavigationButtonStyle
getHeader ( ) : TPanel
getHeaderStyle ( ) : TPanelStyle
getHeaderTemplate ( ) : ITemplate
getHeaderText ( ) : string
getMultiView ( ) : TMultiView Returns the multiview that holds the wizard steps.
getNavigationButtonStyle ( ) : TStyle
getNavigationStyle ( ) : TPanelStyle
getShowCancelButton ( ) : boolean
getShowSideBar ( ) : boolean
getSideBar ( ) : TPanel
getSideBarButtonStyle ( ) : TStyle
getSideBarStyle ( ) : TPanelStyle
getSideBarTemplate ( ) : ITemplate
getStartNavigation ( ) : TWizardNavigationContainer
getStartNavigationTemplate ( ) : ITemplate
getStartNextButtonStyle ( ) : TWizardNavigationButtonStyle
getStepContent ( ) : TPanel
getStepNavigation ( ) : TWizardNavigationContainer
getStepNavigationTemplate ( ) : ITemplate
getStepNextButtonStyle ( ) : TWizardNavigationButtonStyle
getStepPreviousButtonStyle ( ) : TWizardNavigationButtonStyle
getStepStyle ( ) : TPanelStyle
getUseDefaultLayout ( ) : boolean
getWizardSteps ( ) : TWizardStepCollection
onActiveStepChanged ( $param ) Raises OnActiveStepChanged event.
onCancelButtonClick ( $param ) Raises OnCancelButtonClick event.
onCompleteButtonClick ( $param ) Raises OnCompleteButtonClick event.
onInit ( $param ) Creates the child controls of the wizard.
onNextButtonClick ( $param ) Raises OnNextButtonClick event.
onPreviousButtonClick ( $param ) Raises OnPreviousButtonClick event.
onSideBarButtonClick ( $param ) Raises OnSideBarButtonClick event.
removedWizardStep ( $step ) Removes a wizard step from the multiview.
render ( $writer ) Renders the wizard.
saveState ( ) Saves the current active step index into history.
setActiveStep ( $step )
setActiveStepIndex ( $value )
setCancelDestinationUrl ( $value )
setFinishDestinationUrl ( $value )
setFinishNavigationTemplate ( $value )
setHeaderTemplate ( $value )
setHeaderText ( $value )
setShowCancelButton ( $value )
setShowSideBar ( $value )
setSideBarTemplate ( $value )
setStartNavigationTemplate ( $value )
setStepNavigationTemplate ( $value )
setUseDefaultLayout ( $value )
wizardStepsChanged ( ) Updates the sidebar datalist if any.

보호된 메소드들

메소드 설명
allowNavigationToPreviousStep ( ) : boolean
allowNavigationToStep ( $index ) : boolean
applyControlProperties ( ) Applies various properties to the components of wizard
applyHeaderProperties ( ) Applies properties to the wizard header
applyNavigationProperties ( ) Apply properties to various navigation panels.
applySideBarProperties ( ) Applies properties to the wizard sidebar
applyStepContentProperties ( ) Applies properties to the wizard step content
createFinishNavigation ( ) Creates finish navigation panel.
createHeader ( ) Creates the wizard header.
createNavigation ( ) Creates navigation panel.
createSideBar ( ) Creates the wizard side bar
createStartNavigation ( ) Creates start navigation panel.
createStepContent ( ) Creates wizard step content.
createStepNavigation ( ) Creates step navigation panel.
getHistory ( ) : TStack
getPreviousStepIndex ( $popStack ) Determines the index of the previous step based on history.
getStepType ( $wizardStep ) : TWizardStepType Determines the type of the specified wizard step.
getTagName ( ) : string
requiresControlsRecreation ( ) Indicates the wizard needs to recreate all child controls.
reset ( ) Clears up everything within the wizard.

메소드 상세

addParsedObject() 공개 메소드

This method overrides the parent implementation and is invoked when template is being instantiated.
public addParsedObject ( $object )

addedWizardStep() 공개 메소드

This method should only be used by control developers. It is invoked when a step is added into the step collection of the wizard.
public addedWizardStep ( $step )

allowNavigationToPreviousStep() 보호된 메소드

protected allowNavigationToPreviousStep ( ) : boolean
리턴 boolean whether navigation to the previous step is allowed

allowNavigationToStep() 보호된 메소드

protected allowNavigationToStep ( $index ) : boolean
리턴 boolean whether navigation to the specified step is allowed

applyControlProperties() 보호된 메소드

Applies various properties to the components of wizard
protected applyControlProperties ( )

applyHeaderProperties() 보호된 메소드

Applies properties to the wizard header
protected applyHeaderProperties ( )

applyNavigationProperties() 보호된 메소드

Apply properties to various navigation panels.

applySideBarProperties() 보호된 메소드

Applies properties to the wizard sidebar
protected applySideBarProperties ( )

applyStepContentProperties() 보호된 메소드

Applies properties to the wizard step content

bubbleEvent() 공개 메소드

This method mainly translate certain command events into wizard-specific events.
public bubbleEvent ( $sender, $param )

createChildControls() 공개 메소드

Creates child controls within the wizard
public createChildControls ( )

createFinishNavigation() 보호된 메소드

Creates finish navigation panel.
protected createFinishNavigation ( )

createHeader() 보호된 메소드

Creates the wizard header.
protected createHeader ( )

createNavigation() 보호된 메소드

Creates navigation panel.
protected createNavigation ( )

createSideBar() 보호된 메소드

Creates the wizard side bar
protected createSideBar ( )

createStartNavigation() 보호된 메소드

Creates start navigation panel.
protected createStartNavigation ( )

createStepContent() 보호된 메소드

Creates wizard step content.
protected createStepContent ( )

createStepNavigation() 보호된 메소드

Creates step navigation panel.
protected createStepNavigation ( )

dataListItemCommand() 공개 메소드

This method is used internally by wizard. It mainly sets the active step index according to the button clicked in the sidebar.
public dataListItemCommand ( $sender, $param )

dataListItemDataBound() 공개 메소드

This method is used internally by wizard. It mainly configures the buttons in the sidebar datalist.
public dataListItemDataBound ( $sender, $param )

getActiveStep() 공개 메소드

public getActiveStep ( ) : TWizardStep
리턴 TWizardStep the currently active wizard step

getActiveStepIndex() 공개 메소드

public getActiveStepIndex ( ) : integer
리턴 integer the zero-based index of the active wizard step

getCancelButtonStyle() 공개 메소드

public getCancelButtonStyle ( ) : TWizardNavigationButtonStyle
리턴 TWizardNavigationButtonStyle the style for the cancel button

getCancelDestinationUrl() 공개 메소드

public getCancelDestinationUrl ( ) : string
리턴 string the URL that the browser will be redirected to if the cancel button in the wizard is clicked. Defaults to ''.

getFinishCompleteButtonStyle() 공개 메소드

public getFinishCompleteButtonStyle ( ) : TWizardNavigationButtonStyle
리턴 TWizardNavigationButtonStyle the style for the complete button in the finish wizard step.

getFinishDestinationUrl() 공개 메소드

public getFinishDestinationUrl ( ) : string
리턴 string the URL that the browser will be redirected to if the wizard finishes. Defaults to ''.

getFinishNavigation() 공개 메소드

public getFinishNavigation ( ) : TWizardNavigationContainer
리턴 TWizardNavigationContainer container of the finish navigation

getFinishNavigationTemplate() 공개 메소드

public getFinishNavigationTemplate ( ) : ITemplate
리턴 ITemplate navigation template for the finish step. Defaults to null.

getFinishPreviousButtonStyle() 공개 메소드

public getFinishPreviousButtonStyle ( ) : TWizardNavigationButtonStyle
리턴 TWizardNavigationButtonStyle the style for the previous button in the start wizard step.

getHeader() 공개 메소드

public getHeader ( ) : TPanel
리턴 TPanel container of the wizard header

getHeaderStyle() 공개 메소드

public getHeaderStyle ( ) : TPanelStyle
리턴 TPanelStyle the style for the header.

getHeaderTemplate() 공개 메소드

public getHeaderTemplate ( ) : ITemplate
리턴 ITemplate template for wizard header. Defaults to null.

getHeaderText() 공개 메소드

public getHeaderText ( ) : string
리턴 string header text. Defaults to ''.

getHistory() 보호된 메소드

protected getHistory ( ) : TStack
리턴 Prado\Collections\TStack history containing step indexes that were navigated before

getMultiView() 공개 메소드

This method should only be used by control developers.
public getMultiView ( ) : TMultiView
리턴 TMultiView the multiview holding wizard steps

getNavigationButtonStyle() 공개 메소드

public getNavigationButtonStyle ( ) : TStyle
리턴 TStyle the style common for all navigation buttons.

getNavigationStyle() 공개 메소드

public getNavigationStyle ( ) : TPanelStyle
리턴 TPanelStyle the style for the navigation panel.

getPreviousStepIndex() 보호된 메소드

Determines the index of the previous step based on history.
protected getPreviousStepIndex ( $popStack )

getShowCancelButton() 공개 메소드

public getShowCancelButton ( ) : boolean
리턴 boolean whether to display a cancel button in each wizard step. Defaults to false.

getShowSideBar() 공개 메소드

public getShowSideBar ( ) : boolean
리턴 boolean whether to display a side bar that contains links to wizard steps. Defaults to true.

getSideBar() 공개 메소드

public getSideBar ( ) : TPanel
리턴 TPanel container of the wizard side bar

getSideBarButtonStyle() 공개 메소드

public getSideBarButtonStyle ( ) : TStyle
리턴 TStyle the style for the buttons displayed in the side bar.

getSideBarStyle() 공개 메소드

public getSideBarStyle ( ) : TPanelStyle
리턴 TPanelStyle the style for the side bar.

getSideBarTemplate() 공개 메소드

public getSideBarTemplate ( ) : ITemplate
리턴 ITemplate template for the side bar. Defaults to null.

getStartNavigation() 공개 메소드

public getStartNavigation ( ) : TWizardNavigationContainer
리턴 TWizardNavigationContainer container of the start navigation

getStartNavigationTemplate() 공개 메소드

public getStartNavigationTemplate ( ) : ITemplate
리턴 ITemplate navigation template for the start step. Defaults to null.

getStartNextButtonStyle() 공개 메소드

public getStartNextButtonStyle ( ) : TWizardNavigationButtonStyle
리턴 TWizardNavigationButtonStyle the style for the next button in the start wizard step.

getStepContent() 공개 메소드

public getStepContent ( ) : TPanel
리턴 TPanel container of the wizard step content

getStepNavigation() 공개 메소드

public getStepNavigation ( ) : TWizardNavigationContainer
리턴 TWizardNavigationContainer container of the step navigation

getStepNavigationTemplate() 공개 메소드

public getStepNavigationTemplate ( ) : ITemplate
리턴 ITemplate navigation template for internal steps. Defaults to null.

getStepNextButtonStyle() 공개 메소드

public getStepNextButtonStyle ( ) : TWizardNavigationButtonStyle
리턴 TWizardNavigationButtonStyle the style for the next button in each internal wizard step.

getStepPreviousButtonStyle() 공개 메소드

public getStepPreviousButtonStyle ( ) : TWizardNavigationButtonStyle
리턴 TWizardNavigationButtonStyle the style for the previous button in the start wizard step.

getStepStyle() 공개 메소드

public getStepStyle ( ) : TPanelStyle
리턴 TPanelStyle the style for each internal wizard step.

getStepType() 보호된 메소드

Determines the type of the specified wizard step.
protected getStepType ( $wizardStep ) : TWizardStepType
리턴 TWizardStepType type of the step

getTagName() 보호된 메소드

protected getTagName ( ) : string
리턴 string tag name for the wizard

getUseDefaultLayout() 공개 메소드

public getUseDefaultLayout ( ) : boolean
리턴 boolean whether to use default layout to arrange side bar and the rest wizard components. Defaults to true.

getWizardSteps() 공개 메소드

public getWizardSteps ( ) : TWizardStepCollection
리턴 TWizardStepCollection collection of wizard steps

onActiveStepChanged() 공개 메소드

This event is raised when the current visible step is changed in the wizard.
public onActiveStepChanged ( $param )

onCancelButtonClick() 공개 메소드

This event is raised when a cancel navigation button is clicked in the current active step.
public onCancelButtonClick ( $param )

onCompleteButtonClick() 공개 메소드

This event is raised when a finish navigation button is clicked in the current active step.
public onCompleteButtonClick ( $param )

onInit() 공개 메소드

This method overrides the parent implementation.
public onInit ( $param )

onNextButtonClick() 공개 메소드

This event is raised when a next navigation button is clicked in the current active step.
public onNextButtonClick ( $param )

onPreviousButtonClick() 공개 메소드

This event is raised when a previous navigation button is clicked in the current active step.
public onPreviousButtonClick ( $param )

onSideBarButtonClick() 공개 메소드

This event is raised when a link button in the side bar is clicked.
public onSideBarButtonClick ( $param )

removedWizardStep() 공개 메소드

This method should only be used by control developers. It is invoked when a step is removed from the step collection of the wizard.
public removedWizardStep ( $step )

render() 공개 메소드

Renders the wizard.
public render ( $writer )

requiresControlsRecreation() 보호된 메소드

Indicates the wizard needs to recreate all child controls.

reset() 보호된 메소드

Clears up everything within the wizard.
protected reset ( )

saveState() 공개 메소드

This method is invoked by the framework when the control state is being saved.
public saveState ( )

setActiveStep() 공개 메소드

public setActiveStep ( $step )

setActiveStepIndex() 공개 메소드

public setActiveStepIndex ( $value )

setCancelDestinationUrl() 공개 메소드

public setCancelDestinationUrl ( $value )

setFinishDestinationUrl() 공개 메소드

public setFinishDestinationUrl ( $value )

setFinishNavigationTemplate() 공개 메소드

public setFinishNavigationTemplate ( $value )

setHeaderTemplate() 공개 메소드

public setHeaderTemplate ( $value )

setHeaderText() 공개 메소드

public setHeaderText ( $value )

setShowCancelButton() 공개 메소드

public setShowCancelButton ( $value )

setShowSideBar() 공개 메소드

public setShowSideBar ( $value )

setSideBarTemplate() 공개 메소드

public setSideBarTemplate ( $value )

setStartNavigationTemplate() 공개 메소드

public setStartNavigationTemplate ( $value )

setStepNavigationTemplate() 공개 메소드

public setStepNavigationTemplate ( $value )

setUseDefaultLayout() 공개 메소드

public setUseDefaultLayout ( $value )

wizardStepsChanged() 공개 메소드

This method is invoked when any wizard step is changed.
public wizardStepsChanged ( )