sap.ui.vbm.VBI.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.vbm.VBI 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.vbm.VBI.
Returns:
addRenderItem(oControl, targetElemId)
Add dependant child control for rendering.
Parameters:
| oControl | Child control to render |
| targetElemId | ID of DOM element the child to append to |
attachChangeTrackingMode
(oData?, fnFunction, oListener?): sap.ui.vbm.VBI Attaches event handler
fnFunction
to the
changeTrackingMode
event of this
sap.ui.vbm.VBI
.
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.vbm.VBI
itself.
Low level API. Tracking mode is set or reset. This function is not supported in plugin mode.
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.vbm.VBI itself |
Returns:
Attaches event handler
fnFunction
to the
closeWindow
event of this
sap.ui.vbm.VBI
.
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.vbm.VBI
itself.
The event is raised before a Visual Business window is closed. This function is not supported in plugin mode.
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.vbm.VBI itself |
Returns:
attachContainerCreated
(oData?, fnFunction, oListener?): sap.ui.vbm.VBI Attaches event handler
fnFunction
to the
containerCreated
event of this
sap.ui.vbm.VBI
.
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.vbm.VBI
itself.
The event is raised when a Visual Business container VO instance is created. It is intended to be used to place arbitrary content in e.g. other controls. This event is not supported in plugin mode.
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.vbm.VBI itself |
Returns:
attachContainerDestroyed
(oData?, fnFunction, oListener?): sap.ui.vbm.VBI Attaches event handler
fnFunction
to the
containerDestroyed
event of this
sap.ui.vbm.VBI
.
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.vbm.VBI
itself.
The event is raised before a Visual Business container VO instance is destroyed. This function is not supported in plugin mode.
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.vbm.VBI itself |
Returns:
Attaches event handler
fnFunction
to the
move
event of this
sap.ui.vbm.VBI
.
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.vbm.VBI
itself.
Low level API. The canvas was moved. This function is not supported in plugin mode.
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.vbm.VBI itself |
Returns:
Attaches event handler
fnFunction
to the
openWindow
event of this
sap.ui.vbm.VBI
.
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.vbm.VBI
itself.
The event is raised before a Visual Business window is opened. It is intended to be used to place arbitrary content in e.g. a Detail Window. This event is not supported in plugin mode.
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.vbm.VBI itself |
Returns:
Attaches event handler
fnFunction
to the
render
event of this
sap.ui.vbm.VBI
.
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.vbm.VBI
itself.
Low level API. Rendering of the canvas content is reqested. This event can be used to do custom rendering into the Visual Business overlay canvas. This function is not supported in plugin mode.
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.vbm.VBI itself |
Returns:
Attaches event handler
fnFunction
to the
submit
event of this
sap.ui.vbm.VBI
.
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.vbm.VBI
itself.
High level API. Submit event is raised.
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.vbm.VBI itself |
Returns:
Attaches event handler
fnFunction
to the
thumbnailClick
event of this
sap.ui.vbm.VBI
.
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.vbm.VBI
itself.
High level API. ThumbnailClick event is raised.
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.vbm.VBI itself |
Returns:
Attaches event handler
fnFunction
to the
zoom
event of this
sap.ui.vbm.VBI
.
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.vbm.VBI
itself.
Low level API. The canvas is zoomed. This function is not supported in plugin mode.
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.vbm.VBI itself |
Returns:
Detaches event handler
fnFunction
from the
changeTrackingMode
event of this
sap.ui.vbm.VBI
.
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
closeWindow
event of this
sap.ui.vbm.VBI
.
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
containerCreated
event of this
sap.ui.vbm.VBI
.
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
containerDestroyed
event of this
sap.ui.vbm.VBI
.
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
move
event of this
sap.ui.vbm.VBI
.
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
openWindow
event of this
sap.ui.vbm.VBI
.
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
render
event of this
sap.ui.vbm.VBI
.
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
submit
event of this
sap.ui.vbm.VBI
.
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
thumbnailClick
event of this
sap.ui.vbm.VBI
.
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
zoom
event of this
sap.ui.vbm.VBI
.
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
changeTrackingMode
to attached listeners.
Expects the following event parameters:
mode
of type int
tracking mode to set or resetbSet
of type boolean
set or reset the mode
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
closeWindow
to attached listeners.
Expects the following event parameters:
contentarea
of type object
DomRef of placeholder Div for content.id
of type string
ID of the window that is closed.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
containerCreated
to attached listeners.
Expects the following event parameters:
contentarea
of type object
DomRef of placeholder Div to render into.id
of type string
ID of the container that was created.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
containerDestroyed
to attached listeners.
Expects the following event parameters:
contentarea
of type object
DomRef of placeholder Div of content.id
of type string
ID of the container that is destroyed.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
move
to attached listeners.
Expects the following event parameters:
canvas
of type object
Canvas object to render into.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
openWindow
to attached listeners.
Expects the following event parameters:
contentarea
of type object
DomRef of placeholder Div to render into.id
of type string
ID of the window that is opened.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
render
to attached listeners.
Expects the following event parameters:
canvas
of type object
Canvas object to render into.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
submit
to attached listeners.
Expects the following event parameters:
data
of type string
JSON (or possibly XML and case the plugin is used) string describing the delta state of Visual Business and the information about the event.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
thumbnailClick
to attached listeners.
Expects the following event parameters:
pos
of type string
Geo coordinates in format "lon;lat;0"zoomLevel
of type int
Level of detail.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
zoom
to attached listeners.
Expects the following event parameters:
canvas
of type object
Canvas object to render into
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Gets current value of property
height
.
Set the height of the control.
Default value is 600px
.
Returns:
getInfoForCluster(sIdent, iType): oClusterInfo
Retrieve information on a specific cluster object . Type : 0 : contained VOs 1 : child clusters (tree clustering only) 2 : parent Node (tree clustering only) 10 : Information on Node 11 : Edges of the Voronoi Area (tree clustering only, not merged with rectangle)
Parameters:
Returns:
{oClusterInfo} | Cluster Info Object with requested info according to given Cluster Info Type |
getLassoSelection(): boolean
Gets current value of property
lassoSelection
.
Defines whether the lasso selection mode is active or not
Default value is false
.
Returns:
{boolean} | Value of property lassoSelection |
getPicOfOverlay(iMode?): string
Returns a Screenshot of the Overlay. Please note that the map cannot be included due to browser restrictions. Function returns the visible part of the Canvas excluding map, copyright info, navigation control, scaler, legend, detail windows, container elements. Analytic Maps are returned as they are not treated as "maps" internally. Modes 2 & 3 are experimental, trying to load the map (this may work on inhouse servers with adapted settings, standard configurations should fail)
Parameters:
{int} | iMode? | 0: Overlay only; 1 (default) and 3: include Labels; 2 and 3: try to include maps (will return "" if not possible) |
Returns:
{string} | Base64 encoded picture (PNG format) on success, "" otherwise |
getPlugin(): boolean
Gets current value of property
plugin
.
When true, the ActiveX plugin version of Visual Business will be used for rendering. For that the plugin needs to be installed on the client. Default (false) the control renders on canvas.
Default value is false
.
Returns:
{boolean} | Value of property plugin |
getRectangularSelection(): boolean
Gets current value of property
rectangularSelection
.
Defines whether the rectangular selection mode is active or not
Default value is false
.
Returns:
{boolean} | Value of property rectangularSelection |
getRectZoom(): boolean
Gets current value of property
rectZoom
.
Defines whether the rectangular zoom mode is active or not
Default value is false
.
Returns:
{boolean} | Value of property rectZoom |
Gets current value of property
width
.
Set the width of the control.
Default value is 800px
.
Returns:
load(dat): void
High level load function. The function accepts a json string or an already parsed json object. This can be a Visual Business application, any delta operations on the application or other hierachical data that can be mapped by the Visual Business data provider to the inner Visual Business data context.
Parameters:
{string} | dat | Application JSON to process |
maximize(iFullWidth?, iFullHeight?): void
Maximize from Thumbnail.
Parameters:
{int} | iFullWidth? | Width of the underlying VBI control. If ommitted current width is taken |
{int} | iFullHeight? | Height of the underlying control. If ommitted current width is taken |
minimize(iNewWidth, iNewHeight, iFullWidth?, iFullHeight?, font?, fontCol?, fontPos?, text?): void
Minimize to Thumbnail.
Parameters:
{int} | iNewWidth | Width of the thumbnail |
{int} | iNewHeight | Height of the thumbnail |
{int} | iFullWidth? | Width of the underlying VBI control. If ommitted or zero, current width is taken |
{int} | iFullHeight? | Height of the underlying control. If ommitted or zero, current width is taken |
{string} | font? | Font to be used for text added to the thumbnail |
{string} | fontCol? | Color for the thumbnailtext |
{int} | fontPos? | Position (0 - 8) of the text within the thumbnail |
{string} | text? | text to be shown |
Sets a new value for property
height
.
Set the height of the control.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 600px
.
Parameters:
Returns:
Set Tracking Mode for Lasso Selection on/off.
Parameters:
{boolean} | bSet | to start or stop tracking mode |
Returns:
Sets a new value for property
plugin
.
When true, the ActiveX plugin version of Visual Business will be used for rendering. For that the plugin needs to be installed on the client. Default (false) the control renders on canvas.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bPlugin | New value for property plugin |
Returns:
Set Tracking Mode for Rectangular Selection on/off.
Parameters:
{boolean} | bSet | to start or stop tracking mode |
Returns:
Set Tracking Mode for Rectangular Zoom on/off.
Parameters:
{boolean} | bSet | to start or stop tracking mode |
Returns:
Sets a new value for property
width
.
Set the width of the control.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 800px
.
Parameters:
Returns:
zoomToAreas(aAreaList, corr): void
Zoom to one or multiple Areas. This function works only for the main geo scene in the Visual Business control.
Parameters:
{array} | aAreaList | List of Area Ids to zoom to. |
{float} | corr | . This correction factor deals with the space which is reserved to the div borders. The Correction factor can be expressed either in a fracture (e.g. 0.9, this means 10% space to the borders) or array of pixel values (order left, top, right, bottom) for the added margin of the calculated zoom area, e.g. [450,150,0,0] which keeps a left border of 450 pixels and a top border of 150 pixels. |
zoomToGeoPosition(fLon, fLat, iLod): void
Zoom to one or multiple geo positions. This function works only for the main geo scene in the Visual Business control.
Parameters:
{float} | fLon | Longitude in degrees. This can also be an array of longitude values. |
{float} | fLat | Latitude in degrees. This can also be an array of latitude values. |
{int} | iLod | Level of detail, usually between 0 and 20. This will be limited by the map provider capabilities. |
getConfig(): object
Gets current value of property config
.
- Deprecated:
- This property should not longer be used. Its functionality is covered by method
load
.
Returns:
{object} | Value of property config |
Sets a new value for property
config
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{object} | oConfig | New value for property config |
- Deprecated:
- This property should not longer be used. Its functionality is covered by method
load
.
Returns: