sap.ui.vk.StepNavigation.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.vk.StepNavigation with name
sClassName and enriches it with the information contained in
oClassInfo.
oClassInfo might contain the same kind of information as described in sap.ui.core.Control.extend.
Parameters:
| {string} | sClassName | Name of the class being created |
| {object} | oClassInfo? | Object literal with information about the class |
| {function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
| {function} | Created class / constructor function |
Returns a metadata object for class sap.ui.vk.StepNavigation.
Returns:
Attaches event handler
fnFunction to the
resize event of this
sap.ui.vk.StepNavigation.
When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.ui.vk.StepNavigation itself.
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
| {function} | fnFunction | The function to be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.vk.StepNavigation itself |
Returns:
Attaches event handler
fnFunction to the
stepChanged event of this
sap.ui.vk.StepNavigation.
When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.ui.vk.StepNavigation itself.
Raised each time a step starts, changes, or finishes.
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
| {function} | fnFunction | The function to be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.vk.StepNavigation itself |
Returns:
clear(): boolean
Clears the content of the Step Navigation control.
Returns:
| {boolean} | Returns true if the method was called successfully. |
Destroys the layout in the aggregation layout.
Returns:
Destroys the procedureItemTemplate in the aggregation procedureItemTemplate.
Returns:
Destroys the stepInfoPopup in the aggregation stepInfoPopup.
Returns:
Destroys the thumbnailsContainer in the aggregation thumbnailsContainer.
Returns:
Detaches event handler
fnFunction from the
resize event of this
sap.ui.vk.StepNavigation.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction from the
stepChanged event of this
sap.ui.vk.StepNavigation.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
Returns:
Fires event resize to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event stepChanged to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
Gets current value of property
height.
Height of the Step Navigation control.
Default value is 100%.
Returns:
Gets content of aggregation
layout.
sap.m.Panel used to render the entire Step Navigation control's content.
Returns:
getNextStep(procedureIndex?): JSON
Cycles through steps and procedures for the lastLoadedScene and returns the step that follows after the currentStepId.
Parameters:
| {number} | procedureIndex? | Optional integer representing the index of the target procedure in the procedures list. |
Returns:
| {JSON} | The step that follows after the current step. |
getPreviousStep(procedureIndex?): JSON
Cycles through steps and procedures for the last loaded scene (lastLoadedScene), and returns the step preceding the current step (currentStepId.
Parameters:
| {number} | procedureIndex? | Optional integer representing the index of the target procedure in the procedures list. |
Returns:
| {JSON} | The step preceding the current step. |
Gets content of aggregation
procedureItemTemplate.
Template control for Procedure items.
Returns:
getProceduresAndSteps(): JSON
Returns the procedures list with steps for the current scene, and appends base64 data as thumbnailData and an image type as thumbnailType.
Returns:
| {JSON} | For example: {sceneId : string, hasThumbnails : boolean, "procedures" : [id:string, name: string, steps: [{id: string, name: string, thumnailData: string, thumbnailType: string}], "portfolios": [] } |
getSettings(): object
Gets current value of property
settings.
Managed settings and properties for Step Navigation events.
Returns:
| {object} | Value of property settings |
getShowStepInfo(): boolean
Gets current value of property
showStepInfo.
Indicates that the Step Navigation control should display a popup containing information around the step that is playing. If set to true, then the popup is rendered. If set to false, the popup is hidden.
Default value is false.
Returns:
| {boolean} | Value of property showStepInfo |
getShowThumbnails(): boolean
Gets current value of property
showThumbnails.
Indicates that the Step Navigation control should display thumbnails. If set to true, then thumbnails are rendered. If set to false, then thumbnails are hidden.
Default value is true.
Returns:
| {boolean} | Value of property showThumbnails |
getShowToolbar(): boolean
Gets current value of property
showToolbar.
Indicates that the Step Navigation control should display a toolbar. If set to true, then the toolbar is rendered. If set to false, then the toolbar is hidden.
Default value is true.
Returns:
| {boolean} | Value of property showToolbar |
getStep(relIndex, procedureIndex?, specificStepId): JSON
Gets a step based on a positive or negative integer, which is used as an index relative to the index of the current step. An index value of 0 can be used to retrieve the details of the current step.
Parameters:
| {number} | relIndex | Positive or negative integer representing the number to add or subtract from the index of the current step to return the desired step; for example, //next 1, current 0, previous -1 |
| {number} | procedureIndex? | Optional integer representing the index of the target procedure in the procedures list. |
| {string} | specificStepId | The ID of the step that we want to retrieve. |
Returns:
Gets content of aggregation
stepInfoPopup.
sap.ui.core.Popup used to render step information in a popup.
Returns:
Gets content of aggregation
thumbnailsContainer.
sap.m.Panel used to render a list of thumbnails for the available steps.
Returns:
Gets current value of property
width.
Width of the Step Navigation control.
Default value is 100%.
Returns:
pauseStep(): void
Pauses the step that is currently playing.
playAllSteps(procedureId?): void
Plays all the steps in the specified procedure.
Parameters:
| {string} | procedureId? | The ID of the procedure for which to play all steps. If procedureId == null, then only the first step is played. |
playStep(stepId, fromTheBeginning, continueToTheNext): void
Plays the specified procedure step.
Parameters:
| {string} | stepId | The ID of the procedure step to play. |
| {boolean} | fromTheBeginning | Default: true If true, tells the Viewer to play the step from the first frame. |
| {boolean} | continueToTheNext | Default: false If true, tells the Viewer to play the next step in sequence. |
refresh(oScene): boolean
Rebuilds the content of the Step Navigation control from the current Scene.
Parameters:
| {object} | oScene | The scene object to be used. |
Returns:
| {boolean} | Returns true if the content of the Step Navigation control was rebuilt successfully. |
Attaches or detaches the Step Navigation control to the
GraphicsCore object.
If the parameter graphicsCore is not null, a rendering object corresponding to the Viewport is created. If the parameter graphicsCore is null, the rendering object corresponding to the Viewport is destroyed.
Parameters:
Returns:
Sets a new value for property
height.
Height of the Step Navigation control.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is 100%.
Parameters:
Returns:
Sets the aggregated layout.
Parameters:
Returns:
Sets the aggregated procedureItemTemplate.
Parameters:
Returns:
setScene(scene)
Attaches a Scene object to the Step Navigation control so that it can access the Scene’s procedures and steps.
Parameters:
| {object} | scene | The Scene object to attach to the Step Navigation control. |
Sets a new value for property
settings.
Managed settings and properties for Step Navigation events.
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
| {object} | oSettings | New value for property settings |
Returns:
Sets a new value for property
showStepInfo.
Indicates that the Step Navigation control should display a popup containing information around the step that is playing. If set to true, then the popup is rendered. If set to false, the popup is hidden.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is false.
Parameters:
| {boolean} | bShowStepInfo | New value for property showStepInfo |
Returns:
Sets a new value for property
showThumbnails.
Indicates that the Step Navigation control should display thumbnails. If set to true, then thumbnails are rendered. If set to false, then thumbnails are hidden.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is true.
Parameters:
| {boolean} | bShowThumbnails | New value for property showThumbnails |
Returns:
Sets a new value for property
showToolbar.
Indicates that the Step Navigation control should display a toolbar. If set to true, then the toolbar is rendered. If set to false, then the toolbar is hidden.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is true.
Parameters:
| {boolean} | bShowToolbar | New value for property showToolbar |
Returns:
Sets the aggregated stepInfoPopup.
Parameters:
Returns:
Sets the aggregated thumbnailsContainer.
Parameters:
| {sap.m.Panel} | oThumbnailsContainer | The thumbnailsContainer to set |
Returns:
Sets a new value for property
width.
Width of the Step Navigation control.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is 100%.
Parameters:
Returns: