class sap.ui.vtm.extensions.InitialViewExtension

Visiblity: public
UX Guidelines:
Implements: sap.ui.vtm.interfaces.IInitialViewExtension
Available since: N/A
Module: sap/ui/vtm/extensions/InitialViewExtension
Application Component:

Adds a behavior that zooms to all (or a specific view) after the first viewable has loaded successfully.


Constructor

Constructor for a new InitialViewExtension.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.

new sap.ui.vtm.extensions.InitialViewExtension(sId, mSettings)
Param Type Default Value Description
sId string

id for the new sap.ui.vtm.extensions.InitialViewExtension instance.

mSettings object

Object with initial property values, aggregated objects etc. for the new sap.ui.vtm.extensions.InitialViewExtension instance.


Properties

Name Type Default Value Description
predefinedView sap.ui.vtm.PredefinedView

Specifies a predefined view to use. If a specific view is not specified this extension will zoom to fit all geometry without changing the camera angle.

Visibility: public

Borrowed Properties

Name Type Default Value Description
enabled boolean true

Controls whether the extension is enabled.

Visibility: public

Methods Overview

Method Description
sap.ui.vtm.extensions.InitialViewExtension.extend

Creates a new subclass of class sap.ui.vtm.extensions.InitialViewExtension 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.vtm.Extension.extend.

sap.ui.vtm.extensions.InitialViewExtension.getMetadata

Returns a metadata object for class sap.ui.vtm.extensions.InitialViewExtension.

getPredefinedView

Gets current value of property predefinedView.

Specifies a predefined view to use. If a specific view is not specified this extension will zoom to fit all geometry without changing the camera angle.

setPredefinedView

Sets a new value for property predefinedView.

Specifies a predefined view to use. If a specific view is not specified this extension will zoom to fit all geometry without changing the camera angle.

When called with a value of null or undefined, the default value of the property will be restored.

sap.ui.vtm.extensions.InitialViewExtension.extend

Creates a new subclass of class sap.ui.vtm.extensions.InitialViewExtension 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.vtm.Extension.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

sap.ui.vtm.extensions.InitialViewExtension.getMetadata

Returns a metadata object for class sap.ui.vtm.extensions.InitialViewExtension.

getPredefinedView

Gets current value of property predefinedView.

Specifies a predefined view to use. If a specific view is not specified this extension will zoom to fit all geometry without changing the camera angle.

setPredefinedView

Sets a new value for property predefinedView.

Specifies a predefined view to use. If a specific view is not specified this extension will zoom to fit all geometry without changing the camera angle.

When called with a value of null or undefined, the default value of the property will be restored.

Param Type DefaultValue Description
sPredefinedView sap.ui.vtm.PredefinedView

New value for property predefinedView