BiWizardPane

This component creates a wizard that can contain 1 or more pages. The wizard pane provides buttons for navigating back and forth and finishing and canceling the wizard.

Any BiComponent may be used as a page. Use addPage to add pages to the wizard. The pages dispatch activated and deactivated when the active page changes. You can also use the change event to get notifications about when the user changes the active page.

This class extends BiComponent and therefore all methods and fields available for BiComponent are also available for BiWizardPane .

Constructor

new BiWizardPane ( )

Parameters

No parameters.

Properties

NameTypegetsetDescripton
backButtonBiButtoncheckedReturns the back button of the wizard.
cancelButtonBiButtoncheckedReturns the cancel button of the wizard.
finishButtonBiButtoncheckedReturns the finish button of the wizard.
nextButtonBiButtoncheckedReturns the next button of the wizard.
pagesBiComponent[]checkedReturns all the pages currently in the wizard.
selectedIndexNumbercheckedcheckedThe index of the selected page. If no page is selected this returns -1.
selectedPageBiComponentcheckedcheckedThe currently selected page.
stringBundleBiStringBundlecheckedcheckedThe string bundle to use for this wizard pane. If this is set to null then the string bundle for application is used.

Methods

NameDescription
addPageThis adds a page to the wizard pane.
backGoes to the previous page.
cancelThis is called when the user presses the cancel button.
finishThis is called when the user presses the finish button.
nextGoes to the next page.
removePageThis removes a page from the wizard pane.

Events

NameTypeBubblesDescripton
backBiEventFires when the selectedPage changes to the previous page.
beforebackBiEventFires before the selectedPage changes to the previous page. Call preventDefault on the event object to prevent the wizard pane to change the page.
beforecancelBiEventFires before the the wizard pane's cancel event is called. Calling preventDefault on the event object will prevent the wizard pane from dispatching the cancel event.
beforechangeBiEventFires before the selectedPage page changes. Call preventDefault on the event object to prevent the wizard pane to change the page.
beforefinishBiEventFires before the the wizard pane's finish event is called. Calling preventDefault on the event object will prevent the wizard pane from dispatching the finish event.
beforenextBiEventFires before the selectedPage changes to the next page. Call preventDefault on the event object to prevent the wizard pane to change the page.
cancelBiEventThis event is dispatched when the user clicks the cancel button.
changeBiEventFires when the selectedPage page changes.
finishBiEventThis event is dispatched when the user clicks the finish button.
nextBiEventFires when the selectedPage changes to the next page.

Static Methods

None.

Static Fields

None.

Remarks

The wizard pane fires an event called deactivated on the page before moving away from that page. If the default action for this event is prevented the wizard stays at the current page. This is similar to the beforechange except that this is fired on the page instead of on the wizard pane The wizard pane also fires an event called activated on the page after the wizard pane has navigated to the page. The labels for the buttons are provided by a BiStringBundle and the following keys are used: WizardPaneBack - Text for back button WizardPaneNext - Text for next button WizardPaneFinish - Text for finish button WizardPaneCancel - Text for cancel button WizardPaneBackMnemonic - Mnemonic for back button WizardPaneNextMnemonic - Mnemonic for next button WizardPaneBackAccessKey - Access key for back button WizardPaneNextAccessKey - Access key for next button

Method Details

addPage

This adds a page to the wizard pane.

Syntax

object.addPage ( oPage,oBefore )

Parameters

NameTypeOptionalDefaultDescripton
oPageBiComponentThe page to add
oBeforeBiComponentOptional and if provided the new page will be added before this one.

Return Type

void

back

Goes to the previous page.

Syntax

object.back ( )

Parameters

No arguments.

Return Type

void

cancel

This is called when the user presses the cancel button.

Syntax

object.cancel ( )

Parameters

No arguments.

Return Type

void

finish

This is called when the user presses the finish button.

Syntax

object.finish ( )

Parameters

No arguments.

Return Type

void

next

Goes to the next page.

Syntax

object.next ( )

Parameters

No arguments.

Return Type

void

removePage

This removes a page from the wizard pane.

Syntax

object.removePage ( oPage )

Parameters

NameTypeOptionalDefaultDescripton
oPageBiComponentThe page to remove.

Return Type

BiComponent