Class sap.ui.comp.smartmicrochart.SmartBulletMicroChartModule: sap/ui/comp/smartmicrochart/SmartBulletMicroChart

extends Control

The SmartBulletMicroChart control creates a sap.suite.ui.microchart.BulletMicroChart based on OData metadata and the configuration specified by mSettings. The entitySet attribute must be specified to use the control. This attribute is used to fetch metadata and annotation information from the given default OData model. Based on this, the BulletMicroChart UI is created.
Note:
Most of the attributes/properties are not dynamic and cannot be changed once the control has been initialized.


Since: 1.38.
Constructor Summary
new sap.ui.comp.smartmicrochart.SmartBulletMicroChart(sId?, mSettings?)Constructor for a new sap.ui.comp.smartmicrochart/SmartBulletMicroChart.
Event Summary
initialize(oControlEvent)Event fired once the control has been initialized.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.ui.comp.smartmicrochart.SmartBulletMicroChart.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.comp.smartmicrochart.SmartBulletMicroChart with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.comp.smartmicrochart.SmartBulletMicroChart.getMetadata()Returns a metadata object for class sap.ui.comp.smartmicrochart.SmartBulletMicroChart.
attachInitialize(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the initialize event of this sap.ui.comp.smartmicrochart.SmartBulletMicroChart.
detachInitialize(fnFunction, oListener)Detaches event handler fnFunction from the initialize event of this sap.ui.comp.smartmicrochart.SmartBulletMicroChart.
fireInitialize(mArguments?)Fires event initialize to attached listeners.
getChartBindingPath()Gets current value of property chartBindingPath.
getChartDescription()ID of the element which is the current target of the association chartDescription, or null.
getChartTitle()ID of the element which is the current target of the association chartTitle, or null.
getChartType()Gets current value of property chartType.
getEnableAutoBinding()Gets current value of property enableAutoBinding.
getEntitySet()Gets current value of property entitySet.
getIsResponsive()Gets current value of property isResponsive.
getShowLabel()Gets current value of property showLabel.
getUnitOfMeasure()ID of the element which is the current target of the association unitOfMeasure, or null.
getWidth()Gets current value of property width.
setChartBindingPath(sChartBindingPath)Sets a new value for property chartBindingPath.
setChartDescription(oChartDescription)Sets the associated chartDescription.
setChartTitle(oChartTitle)Sets the associated chartTitle.
setEnableAutoBinding(bEnableAutoBinding)Sets a new value for property enableAutoBinding.
setEntitySet(sEntitySet)Sets a new value for property entitySet.
setIsResponsive(bIsResponsive)Sets a new value for property isResponsive.
setShowLabel(bShowLabel)Sets a new value for property showLabel.
setUnitOfMeasure(oUnitOfMeasure)Sets the associated unitOfMeasure.
setWidth(sWidth)Sets a new value for property width.
Constructor Detail
new sap.ui.comp.smartmicrochart.SmartBulletMicroChart(sId?, mSettings?)
Constructor for a new sap.ui.comp.smartmicrochart/SmartBulletMicroChart.

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:

In addition, all settings applicable to the base type sap.ui.core.Control can be used as well.

Parameters:
{string}sId? id for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Event Detail
initialize(oControlEvent)
Event fired once the control has been initialized.
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
Method Detail
sap.ui.comp.smartmicrochart.SmartBulletMicroChart.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.comp.smartmicrochart.SmartBulletMicroChart 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
sap.ui.comp.smartmicrochart.SmartBulletMicroChart.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.comp.smartmicrochart.SmartBulletMicroChart.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
attachInitialize(oData?, fnFunction, oListener?): sap.ui.comp.smartmicrochart.SmartBulletMicroChart
Attaches event handler fnFunction to the initialize event of this sap.ui.comp.smartmicrochart.SmartBulletMicroChart.

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.comp.smartmicrochart.SmartBulletMicroChart itself.

Event fired once the control has been initialized.

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.comp.smartmicrochart.SmartBulletMicroChart itself
Returns:
{sap.ui.comp.smartmicrochart.SmartBulletMicroChart} Reference to this in order to allow method chaining
detachInitialize(fnFunction, oListener): sap.ui.comp.smartmicrochart.SmartBulletMicroChart
Detaches event handler fnFunction from the initialize event of this sap.ui.comp.smartmicrochart.SmartBulletMicroChart.

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:
{sap.ui.comp.smartmicrochart.SmartBulletMicroChart} Reference to this in order to allow method chaining
Fires event initialize to attached listeners.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Returns:
{sap.ui.comp.smartmicrochart.SmartBulletMicroChart} Reference to this in order to allow method chaining
getChartBindingPath(): string
Gets current value of property chartBindingPath.

This attribute can be used to specify the relative path ( without '/') to an entity ( not an entitySet) that is used during the binding of the chart. It can be e.g. a navigation property which will be added to the context path

Returns:
{string} Value of property chartBindingPath
getChartDescription(): sap.m.Label
ID of the element which is the current target of the association chartDescription, or null.
Since:
1.38.0
Returns:
{sap.m.Label}
getChartTitle(): sap.m.Label
ID of the element which is the current target of the association chartTitle, or null.
Since:
1.38.0
Returns:
{sap.m.Label}
getChartType(): string
Gets current value of property chartType.

Specifies the chart type. Note that this property is read-only.

Default value is Bullet.

Returns:
{string} Value of property chartType
getEnableAutoBinding(): boolean
Gets current value of property enableAutoBinding.

If set to true, this enables automatic binding of the chart using the chartBindingPath (if it exists) property.

Default value is false.

Returns:
{boolean} Value of property enableAutoBinding
getEntitySet(): string
Gets current value of property entitySet.

The entity set name from from where the data is fetched and and the internal BulletMicroChart representation is created. Note that this is not a dynamic UI5 property.

Returns:
{string} Value of property entitySet
getIsResponsive(): boolean
Gets current value of property isResponsive.

If this is set to true, width and height of the control are determined by the width and height of the container in which the control is placed. width property is ignored in such case.

Default value is false.

Returns:
{boolean} Value of property isResponsive
getShowLabel(): boolean
Gets current value of property showLabel.

Determines if any label is shown or not

Default value is true.

Returns:
{boolean} Value of property showLabel
getUnitOfMeasure(): sap.m.Label
ID of the element which is the current target of the association unitOfMeasure, or null.
Since:
1.38.0
Returns:
{sap.m.Label}
getWidth(): sap.ui.core.CSSSize
Gets current value of property width.

Defines the width.

Default value is 164px.

Returns:
{sap.ui.core.CSSSize} Value of property width
setChartBindingPath(sChartBindingPath): sap.ui.comp.smartmicrochart.SmartBulletMicroChart
Sets a new value for property chartBindingPath.

This attribute can be used to specify the relative path ( without '/') to an entity ( not an entitySet) that is used during the binding of the chart. It can be e.g. a navigation property which will be added to the context path

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

Parameters:
{string}sChartBindingPath New value for property chartBindingPath
Returns:
{sap.ui.comp.smartmicrochart.SmartBulletMicroChart} Reference to this in order to allow method chaining
setChartDescription(oChartDescription): sap.ui.comp.smartmicrochart.SmartBulletMicroChart
Sets the associated chartDescription.
Parameters:
{sap.m.Label}oChartDescription Id of an element which becomes the new target of this chartDescription association; alternatively, an element instance may be given
Since:
1.38.0
Returns:
{sap.ui.comp.smartmicrochart.SmartBulletMicroChart} Reference to this in order to allow method chaining
Sets the associated chartTitle.
Parameters:
{sap.m.Label}oChartTitle Id of an element which becomes the new target of this chartTitle association; alternatively, an element instance may be given
Since:
1.38.0
Returns:
{sap.ui.comp.smartmicrochart.SmartBulletMicroChart} Reference to this in order to allow method chaining
setEnableAutoBinding(bEnableAutoBinding): sap.ui.comp.smartmicrochart.SmartBulletMicroChart
Sets a new value for property enableAutoBinding.

If set to true, this enables automatic binding of the chart using the chartBindingPath (if it exists) property.

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

Default value is false.

Parameters:
{boolean}bEnableAutoBinding New value for property enableAutoBinding
Returns:
{sap.ui.comp.smartmicrochart.SmartBulletMicroChart} Reference to this in order to allow method chaining
Sets a new value for property entitySet.

The entity set name from from where the data is fetched and and the internal BulletMicroChart representation is created. Note that this is not a dynamic UI5 property.

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

Parameters:
{string}sEntitySet New value for property entitySet
Returns:
{sap.ui.comp.smartmicrochart.SmartBulletMicroChart} Reference to this in order to allow method chaining
setIsResponsive(bIsResponsive): sap.ui.comp.smartmicrochart.SmartBulletMicroChart
Sets a new value for property isResponsive.

If this is set to true, width and height of the control are determined by the width and height of the container in which the control is placed. width property is ignored in such case.

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

Default value is false.

Parameters:
{boolean}bIsResponsive New value for property isResponsive
Returns:
{sap.ui.comp.smartmicrochart.SmartBulletMicroChart} Reference to this in order to allow method chaining
Sets a new value for property showLabel.

Determines if any label is shown or not

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

Default value is true.

Parameters:
{boolean}bShowLabel New value for property showLabel
Returns:
{sap.ui.comp.smartmicrochart.SmartBulletMicroChart} Reference to this in order to allow method chaining
setUnitOfMeasure(oUnitOfMeasure): sap.ui.comp.smartmicrochart.SmartBulletMicroChart
Sets the associated unitOfMeasure.
Parameters:
{sap.m.Label}oUnitOfMeasure Id of an element which becomes the new target of this unitOfMeasure association; alternatively, an element instance may be given
Since:
1.38.0
Returns:
{sap.ui.comp.smartmicrochart.SmartBulletMicroChart} Reference to this in order to allow method chaining
Sets a new value for property width.

Defines the width.

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

Default value is 164px.

Parameters:
{sap.ui.core.CSSSize}sWidth New value for property width
Returns:
{sap.ui.comp.smartmicrochart.SmartBulletMicroChart} Reference to this in order to allow method chaining