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

TMultiView serves as a container for a group of {@link TView} controls. The view collection can be retrieved by {@link getViews Views}. Each view contains child controls. TMultiView determines which view and its child controls are visible. At any time, at most one view is visible (called active). To make a view active, set {@link setActiveView ActiveView} or {@link setActiveViewIndex ActiveViewIndex}. TMultiView also responds to specific command events raised from button controls contained in current active view. A command event with name 'NextView' will cause TMultiView to make the next available view active. Other command names recognized by TMultiView include - PreviousView : switch to previous view - SwitchViewID : switch to a view by its ID path - SwitchViewIndex : switch to a view by its index in the {@link getViews Views} collection. TMultiView raises {@link OnActiveViewChanged OnActiveViewChanged} event when its active view is changed during a postback.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends Prado\Web\UI\TControl
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
addParsedObject ( $object ) Processes an object that is created during parsing template.
bubbleEvent ( $sender, $param ) : boolean Processes the events bubbled from child controls.
getActiveView ( ) : TView
getActiveViewIndex ( ) : integer
getViews ( ) : TViewCollection
ignoreBubbleEvents ( ) Makes the multiview ignore all bubbled events.
loadState ( ) Loads state into the wizard.
onActiveViewChanged ( $param ) Raises OnActiveViewChanged event.
onInit ( $param ) Initializes the active view if any.
render ( $writer ) Renders the currently active view.
setActiveView ( $view )
setActiveViewIndex ( $value )

보호된 메소드들

메소드 설명
activateView ( $view, $triggerViewChangedEvent = true ) Activates the specified view.
createControlCollection ( ) : TViewCollection Creates a control collection object that is to be used to hold child controls

메소드 상세

activateView() 보호된 메소드

If there is any view currently active, it will be deactivated.
protected activateView ( $view, $triggerViewChangedEvent = true )

addParsedObject() 공개 메소드

This method overrides the parent implementation by adding only {@link TView} controls as children.
또한 보기: createdOnTemplate
public addParsedObject ( $object )

bubbleEvent() 공개 메소드

The method handles view-related command events.
public bubbleEvent ( $sender, $param ) : boolean
리턴 boolean whether this event is handled

createControlCollection() 보호된 메소드

Creates a control collection object that is to be used to hold child controls
protected createControlCollection ( ) : TViewCollection
리턴 TViewCollection control collection

getActiveView() 공개 메소드

public getActiveView ( ) : TView
리턴 TView the currently active view, null if no active view

getActiveViewIndex() 공개 메소드

public getActiveViewIndex ( ) : integer
리턴 integer the zero-based index of the current view in the view collection. -1 if no active view. Default is -1.

getViews() 공개 메소드

public getViews ( ) : TViewCollection
리턴 TViewCollection the view collection

ignoreBubbleEvents() 공개 메소드

This is method is used internally by framework and control developers.
public ignoreBubbleEvents ( )

loadState() 공개 메소드

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

onActiveViewChanged() 공개 메소드

The event is raised when the currently active view is changed to a new one
public onActiveViewChanged ( $param )

onInit() 공개 메소드

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

render() 공개 메소드

Renders the currently active view.
public render ( $writer )

setActiveView() 공개 메소드

public setActiveView ( $view )

setActiveViewIndex() 공개 메소드

public setActiveViewIndex ( $value )