Class sap.ui.vbm.RegionModule: sap/ui/vbm/Region
Region properties.
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the click
event of this sap.ui.vbm.Region
.fnFunction
to the contextMenu
event of this sap.ui.vbm.Region
.fnFunction
from the click
event of this sap.ui.vbm.Region
.fnFunction
from the contextMenu
event of this sap.ui.vbm.Region
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- Events
- click : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
- contextMenu : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.ui.core.Element can be used as well.
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters | |
{string} | oControlEvent.getParameters.code | The region code. |
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters | |
{string} | oControlEvent.getParameters.code | The region code. |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Element.extend.
{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 |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
fnFunction
to the click
event of this sap.ui.vbm.Region
. 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.Region
itself.
The event is raised when there is a click action on a region.
{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.Region itself |
{sap.ui.vbm.Region} | Reference to this in order to allow method chaining |
fnFunction
to the contextMenu
event of this sap.ui.vbm.Region
. 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.Region
itself.
The event is raised when there is a right click or a tap and hold action on a region.
{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.Region itself |
{sap.ui.vbm.Region} | Reference to this in order to allow method chaining |
fnFunction
from the click
event of this sap.ui.vbm.Region
. The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
{sap.ui.vbm.Region} | Reference to this in order to allow method chaining |
fnFunction
from the contextMenu
event of this sap.ui.vbm.Region
. The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
{sap.ui.vbm.Region} | Reference to this in order to allow method chaining |
click
to attached listeners. Expects the following event parameters:
code
of typestring
The region code.
{Map} | mArguments? | The arguments to pass along with the event |
{sap.ui.vbm.Region} | Reference to this in order to allow method chaining |
contextMenu
to attached listeners. Expects the following event parameters:
code
of typestring
The region code.
{Map} | mArguments? | The arguments to pass along with the event |
{sap.ui.vbm.Region} | Reference to this in order to allow method chaining |
code
. The region code.
{string} | Value of property code |
color
. The color, this must be provided in the rgba(r,g,b,a) format.
{sap.ui.core.CSSColor} | Value of property color |
{object} | Region Information Object. Object has the properties BBox: Bounding Box for Region in format "lonMin;latMin;lonMax;latMax", Midpoint: Centerpoint for Region in format "lon;lat", Name: Name of the region, and Properties: Array of name-value-pair associated with the region |
select
. set to true if the element is selected
Default value is false
.
{boolean} | Value of property select |
code
. The region code.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sCode | New value for property code |
{sap.ui.vbm.Region} | Reference to this in order to allow method chaining |
color
. The color, this must be provided in the rgba(r,g,b,a) format.
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.core.CSSColor} | sColor | New value for property color |
{sap.ui.vbm.Region} | Reference to this in order to allow method chaining |
select
. set to true if the element is selected
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bSelect | New value for property select |
{sap.ui.vbm.Region} | Reference to this in order to allow method chaining |