Class sap.m.ObjectStatusModule: sap/m/ObjectStatus

extends Control

Status information that can be either text with a value state, or an icon.

Constructor Summary
new sap.m.ObjectStatus(sId?, mSettings?)Constructor for a new ObjectStatus.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.m.ObjectStatus.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.m.ObjectStatus with name sClassName and enriches it with the information contained in oClassInfo.
sap.m.ObjectStatus.getMetadata()Returns a metadata object for class sap.m.ObjectStatus.
addAriaDescribedBy(vAriaDescribedBy)Adds some ariaDescribedBy into the association ariaDescribedBy.
getAriaDescribedBy()Returns array of IDs of the elements which are the current targets of the association ariaDescribedBy.
getIcon()Gets current value of property icon.
getIconDensityAware()Gets current value of property iconDensityAware.
getState()Gets current value of property state.
getText()Gets current value of property text.
getTextDirection()Gets current value of property textDirection.
getTitle()Gets current value of property title.
removeAllAriaDescribedBy()Removes all the controls in the association named ariaDescribedBy.
removeAriaDescribedBy(vAriaDescribedBy)Removes an ariaDescribedBy from the association named ariaDescribedBy.
setIcon(sIcon)Sets a new value for property icon.
setIconDensityAware(bIconDensityAware)Sets a new value for property iconDensityAware.
setState(sState)Sets a new value for property state.
setText(sText)Sets the text.
setTextDirection(sTextDirection)Sets a new value for property textDirection.
setTitle(sTitle)Sets the title.
Constructor Detail
new sap.m.ObjectStatus(sId?, mSettings?)
Constructor for a new ObjectStatus.

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
Method Detail
sap.m.ObjectStatus.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.ObjectStatus 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.m.ObjectStatus.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.m.ObjectStatus.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
addAriaDescribedBy(vAriaDescribedBy): sap.m.ObjectStatus
Adds some ariaDescribedBy into the association ariaDescribedBy.
Parameters:
{string|sap.ui.core.Control}vAriaDescribedBy the ariaDescribedBy to add; if empty, nothing is inserted
Returns:
{sap.m.ObjectStatus} Reference to this in order to allow method chaining
getAccessibilityInfo()
See:
{sap.ui.core.Control#getAccessibilityInfo}
getAriaDescribedBy(): sap.ui.core.Control[]
Returns array of IDs of the elements which are the current targets of the association ariaDescribedBy.
Returns:
{sap.ui.core.Control[]}
getIcon(): sap.ui.core.URI
Gets current value of property icon.

Icon URI. This may be either an icon font or image path.

Returns:
{sap.ui.core.URI} Value of property icon
getIconDensityAware(): boolean
Gets current value of property iconDensityAware.

By default, this is set to true but then one or more requests are sent trying to get the density perfect version of image if this version of image doesn't exist on the server.

If bandwidth is key for the application, set this value to false.

Default value is true.

Returns:
{boolean} Value of property iconDensityAware
Gets current value of property state.

Defines the text value state.

Default value is None.

Returns:
{sap.ui.core.ValueState} Value of property state
getText(): string
Gets current value of property text.

Defines the ObjectStatus text.

Returns:
{string} Value of property text
getTextDirection(): sap.ui.core.TextDirection
Gets current value of property textDirection.

Determines the direction of the text, not including the title. Available options for the text direction are LTR (left-to-right) and RTL (right-to-left). By default the control inherits the text direction from its parent control.

Default value is Inherit.

Returns:
{sap.ui.core.TextDirection} Value of property textDirection
getTitle(): string
Gets current value of property title.

Defines the ObjectStatus title.

Returns:
{string} Value of property title
removeAllAriaDescribedBy(): sap.ui.core.Control[]
Removes all the controls in the association named ariaDescribedBy.
Returns:
{sap.ui.core.Control[]} An array of the removed elements (might be empty)
removeAriaDescribedBy(vAriaDescribedBy): sap.ui.core.Control
Removes an ariaDescribedBy from the association named ariaDescribedBy.
Parameters:
{int|string|sap.ui.core.Control}vAriaDescribedBy The ariaDescribedByto be removed or its index or ID
Returns:
{sap.ui.core.Control} the removed ariaDescribedBy or null
setIcon(sIcon): sap.m.ObjectStatus
Sets a new value for property icon.

Icon URI. This may be either an icon font or image path.

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

Parameters:
{sap.ui.core.URI}sIcon New value for property icon
Returns:
{sap.m.ObjectStatus} Reference to this in order to allow method chaining
setIconDensityAware(bIconDensityAware): sap.m.ObjectStatus
Sets a new value for property iconDensityAware.

By default, this is set to true but then one or more requests are sent trying to get the density perfect version of image if this version of image doesn't exist on the server.

If bandwidth is key for the application, set this value to false.

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

Default value is true.

Parameters:
{boolean}bIconDensityAware New value for property iconDensityAware
Returns:
{sap.m.ObjectStatus} Reference to this in order to allow method chaining
setState(sState): sap.m.ObjectStatus
Sets a new value for property state.

Defines the text value state.

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

Default value is None.

Parameters:
{sap.ui.core.ValueState}sState New value for property state
Returns:
{sap.m.ObjectStatus} Reference to this in order to allow method chaining
setText(sText): sap.m.ObjectStatus
Sets the text. The default value is empty/undefined.
Parameters:
{string}sText New value for property text
Returns:
{sap.m.ObjectStatus} this to allow method chaining
setTextDirection(sTextDirection): sap.m.ObjectStatus
Sets a new value for property textDirection.

Determines the direction of the text, not including the title. Available options for the text direction are LTR (left-to-right) and RTL (right-to-left). By default the control inherits the text direction from its parent control.

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

Default value is Inherit.

Parameters:
{sap.ui.core.TextDirection}sTextDirection New value for property textDirection
Returns:
{sap.m.ObjectStatus} Reference to this in order to allow method chaining
setTitle(sTitle): sap.m.ObjectStatus
Sets the title. The default value is empty/undefined.
Parameters:
{string}sTitle New value for property title
Returns:
{sap.m.ObjectStatus} this to allow method chaining