When the administrator clicks Finish in the wizard toolbar, the Finish pane is displayed if the useFinishPane()method returns a FinishPaneController object.
If null is returned, the Finish pane is not displayed, and the wizard closes.
By default, the following options are displayed to the administrator in the Finish pane:
● Open: Opens the newly created object. The location of the object is specified by the saveLocationParam context attribute and the object ID is specified by the objectID context attribute.
● Restart: Restarts the wizard.
● Close: Closes the wizard.
The following are the options displayed in the Finish pane:
|
To display the default Finish pane, create a FinishPaneControllerobject using the default constructor, and return this object in the useFinishPane()method, as follows:
publiccom.sap.portal.adminstudio.wizardfwapi.FinishPaneController useFinishPane()
{
//@@begin useFinishPane()
FinishPaneController finishPaneController = newFinishPaneController();
returnfinishPaneController;
//@@end
}
To customize the Finish pane, call configuration methods on the FinishPaneController object before returning it.
The following example creates a Finish pane that displays the Restart and Close options, but hides the Open option.
publiccom.sap.portal.adminstudio.wizardfwapi.FinishPaneController useFinishPane( ) {
//@@begin useFinishPane()
FinishPaneController finishPaneController = newFinishPaneController();
finishPaneController.setUseOpenEditorOption(false);
finishPaneController.setUseCloseWizardOption(true);
finishPaneController.setUseRestartWizardOption(true);
returnfinishPaneController;
//@@end
}
The following are the options displayed in the Finish pane:
|