Class sap.suite.ui.microchart.DeltaMicroChartModule: sap/suite/ui/microchart/DeltaMicroChart

extends Control

Represents the delta of two values as a chart. This control replaces the deprecated sap.suite.ui.commons.DeltaMicroChart.


Since: 1.34.
Constructor Summary
new sap.suite.ui.microchart.DeltaMicroChart(sId?, mSettings?)Constructor for a new DeltaMicroChart control.
Event Summary
press(oControlEvent)The event is fired when the user chooses the delta micro chart.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.suite.ui.microchart.DeltaMicroChart.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.suite.ui.microchart.DeltaMicroChart with name sClassName and enriches it with the information contained in oClassInfo.
sap.suite.ui.microchart.DeltaMicroChart.getMetadata()Returns a metadata object for class sap.suite.ui.microchart.DeltaMicroChart.
attachPress(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the press event of this sap.suite.ui.microchart.DeltaMicroChart.
detachPress(fnFunction, oListener)Detaches event handler fnFunction from the press event of this sap.suite.ui.microchart.DeltaMicroChart.
firePress(mArguments?)Fires event press to attached listeners.
getColor()Gets current value of property color.
getDeltaDisplayValue()Gets current value of property deltaDisplayValue.
getDisplayValue1()Gets current value of property displayValue1.
getDisplayValue2()Gets current value of property displayValue2.
getIsResponsive()Gets current value of property isResponsive.
getSize()Gets current value of property size.
getTitle1()Gets current value of property title1.
getTitle2()Gets current value of property title2.
getValue1()Gets current value of property value1.
getValue2()Gets current value of property value2.
getWidth()Gets current value of property width.
setColor(sColor)Sets a new value for property color.
setDeltaDisplayValue(sDeltaDisplayValue)Sets a new value for property deltaDisplayValue.
setDisplayValue1(sDisplayValue1)Sets a new value for property displayValue1.
setDisplayValue2(sDisplayValue2)Sets a new value for property displayValue2.
setIsResponsive(bIsResponsive)Sets a new value for property isResponsive.
setSize(sSize)Sets a new value for property size.
setTitle1(sTitle1)Sets a new value for property title1.
setTitle2(sTitle2)Sets a new value for property title2.
setValue1(fValue1)Sets a new value for property value1.
setValue2(fValue2)Sets a new value for property value2.
setWidth(sWidth)Sets a new value for property width.
Constructor Detail
new sap.suite.ui.microchart.DeltaMicroChart(sId?, mSettings?)
Constructor for a new DeltaMicroChart control.

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
press(oControlEvent)
The event is fired when the user chooses the delta micro chart.
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
Method Detail
sap.suite.ui.microchart.DeltaMicroChart.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.suite.ui.microchart.DeltaMicroChart 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.suite.ui.microchart.DeltaMicroChart.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.suite.ui.microchart.DeltaMicroChart.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
attachPress(oData?, fnFunction, oListener?): sap.suite.ui.microchart.DeltaMicroChart
Attaches event handler fnFunction to the press event of this sap.suite.ui.microchart.DeltaMicroChart.

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.suite.ui.microchart.DeltaMicroChart itself.

The event is fired when the user chooses the delta micro chart.

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.suite.ui.microchart.DeltaMicroChart itself
Returns:
{sap.suite.ui.microchart.DeltaMicroChart} Reference to this in order to allow method chaining
detachPress(fnFunction, oListener): sap.suite.ui.microchart.DeltaMicroChart
Detaches event handler fnFunction from the press event of this sap.suite.ui.microchart.DeltaMicroChart.

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.suite.ui.microchart.DeltaMicroChart} Reference to this in order to allow method chaining
Fires event press to attached listeners.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Returns:
{sap.suite.ui.microchart.DeltaMicroChart} Reference to this in order to allow method chaining
getColor(): sap.m.ValueColor
Gets current value of property color.

The semantic color of the delta value.

Default value is Neutral.

Returns:
{sap.m.ValueColor} Value of property color
getDeltaDisplayValue(): string
Gets current value of property deltaDisplayValue.

If this property is set, it is rendered instead of a calculated delta.

Returns:
{string} Value of property deltaDisplayValue
getDisplayValue1(): string
Gets current value of property displayValue1.

If this property is set, it is rendered instead of value1.

Returns:
{string} Value of property displayValue1
getDisplayValue2(): string
Gets current value of property displayValue2.

If this property is set, it is rendered instead of value2.

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

If this 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. Size and Width properties are ignored in such case.

Default value is false.

Since:
1.38.0
Returns:
{boolean} Value of property isResponsive
getSize(): sap.m.Size
Gets current value of property size.

The size of the chart. If is not set, the default size is applied based on the device type.

Default value is Auto.

Returns:
{sap.m.Size} Value of property size
getTitle1(): string
Gets current value of property title1.

The first value title.

Returns:
{string} Value of property title1
getTitle2(): string
Gets current value of property title2.

The second value title.

Returns:
{string} Value of property title2
getValue1(): float
Gets current value of property value1.

The first value for delta calculation.

Returns:
{float} Value of property value1
getValue2(): float
Gets current value of property value2.

The second value for delta calculation.

Returns:
{float} Value of property value2
getWidth(): sap.ui.core.CSSSize
Gets current value of property width.

The width of the chart.

Returns:
{sap.ui.core.CSSSize} Value of property width
Sets a new value for property color.

The semantic color of the delta value.

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

Default value is Neutral.

Parameters:
{sap.m.ValueColor}sColor New value for property color
Returns:
{sap.suite.ui.microchart.DeltaMicroChart} Reference to this in order to allow method chaining
setDeltaDisplayValue(sDeltaDisplayValue): sap.suite.ui.microchart.DeltaMicroChart
Sets a new value for property deltaDisplayValue.

If this property is set, it is rendered instead of a calculated delta.

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

Parameters:
{string}sDeltaDisplayValue New value for property deltaDisplayValue
Returns:
{sap.suite.ui.microchart.DeltaMicroChart} Reference to this in order to allow method chaining
setDisplayValue1(sDisplayValue1): sap.suite.ui.microchart.DeltaMicroChart
Sets a new value for property displayValue1.

If this property is set, it is rendered instead of value1.

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

Parameters:
{string}sDisplayValue1 New value for property displayValue1
Returns:
{sap.suite.ui.microchart.DeltaMicroChart} Reference to this in order to allow method chaining
setDisplayValue2(sDisplayValue2): sap.suite.ui.microchart.DeltaMicroChart
Sets a new value for property displayValue2.

If this property is set, it is rendered instead of value2.

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

Parameters:
{string}sDisplayValue2 New value for property displayValue2
Returns:
{sap.suite.ui.microchart.DeltaMicroChart} Reference to this in order to allow method chaining
setIsResponsive(bIsResponsive): sap.suite.ui.microchart.DeltaMicroChart
Sets a new value for property isResponsive.

If this 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. Size and Width properties are 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
Since:
1.38.0
Returns:
{sap.suite.ui.microchart.DeltaMicroChart} Reference to this in order to allow method chaining
Sets a new value for property size.

The size of the chart. If is not set, the default size is applied based on the device type.

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

Default value is Auto.

Parameters:
{sap.m.Size}sSize New value for property size
Returns:
{sap.suite.ui.microchart.DeltaMicroChart} Reference to this in order to allow method chaining
Sets a new value for property title1.

The first value title.

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

Parameters:
{string}sTitle1 New value for property title1
Returns:
{sap.suite.ui.microchart.DeltaMicroChart} Reference to this in order to allow method chaining
Sets a new value for property title2.

The second value title.

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

Parameters:
{string}sTitle2 New value for property title2
Returns:
{sap.suite.ui.microchart.DeltaMicroChart} Reference to this in order to allow method chaining
Sets a new value for property value1.

The first value for delta calculation.

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

Parameters:
{float}fValue1 New value for property value1
Returns:
{sap.suite.ui.microchart.DeltaMicroChart} Reference to this in order to allow method chaining
Sets a new value for property value2.

The second value for delta calculation.

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

Parameters:
{float}fValue2 New value for property value2
Returns:
{sap.suite.ui.microchart.DeltaMicroChart} Reference to this in order to allow method chaining
Sets a new value for property width.

The width of the chart.

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

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