class sap.ui.comp.smartfield.ObjectStatus

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/comp/smartfield/ObjectStatus
Application Component: CA-UI5-CMP

Defines a possible object status control to be rendered. The smart field may ignore the proposal.


Constructor

Constructor for a new SmartField/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#constructor for a general description of the syntax of the settings object.

new sap.ui.comp.smartfield.ObjectStatus(sId?, mSettings?)
Param Type Default Value Description
sId? string

ID for the new control, generated automatically if no ID is given

mSettings? object

Initial settings for the new control


Properties

Name Type Default Value Description
criticality any

Optional attribute to determine the rendered state. Possible values are the numeric representations of the enum members of annotation com.sap.vocabularies.UI.v1.CriticalityType: 0: None 1: Error 2: Warning 3: Success

Visibility: public
criticalityRepresentationType sap.ui.comp.smartfield.CriticalityRepresentationType WithIcon

Optional attribute, which can be set to control how the criticality is visualized.

Visibility: public

Methods Overview

Method Description
sap.ui.comp.smartfield.ObjectStatus.extend

Creates a new subclass of class sap.ui.comp.smartfield.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.Element.extend.

getCriticality

Gets current value of property criticality.

Optional attribute to determine the rendered state. Possible values are the numeric representations of the enum members of annotation com.sap.vocabularies.UI.v1.CriticalityType: 0: None 1: Error 2: Warning 3: Success

getCriticalityRepresentationType

Gets current value of property criticalityRepresentationType.

Optional attribute, which can be set to control how the criticality is visualized.

Default value is WithIcon.

sap.ui.comp.smartfield.ObjectStatus.getMetadata

Returns a metadata object for class sap.ui.comp.smartfield.ObjectStatus.

setCriticality

Sets a new value for property criticality.

Optional attribute to determine the rendered state. Possible values are the numeric representations of the enum members of annotation com.sap.vocabularies.UI.v1.CriticalityType: 0: None 1: Error 2: Warning 3: Success

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

setCriticalityRepresentationType

Sets a new value for property criticalityRepresentationType.

Optional attribute, which can be set to control how the criticality is visualized.

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

Default value is WithIcon.

sap.ui.comp.smartfield.ObjectStatus.extend

Creates a new subclass of class sap.ui.comp.smartfield.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.Element.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

getCriticality

Gets current value of property criticality.

Optional attribute to determine the rendered state. Possible values are the numeric representations of the enum members of annotation com.sap.vocabularies.UI.v1.CriticalityType: 0: None 1: Error 2: Warning 3: Success

getCriticalityRepresentationType

Gets current value of property criticalityRepresentationType.

Optional attribute, which can be set to control how the criticality is visualized.

Default value is WithIcon.

sap.ui.comp.smartfield.ObjectStatus.getMetadata

Returns a metadata object for class sap.ui.comp.smartfield.ObjectStatus.

setCriticality

Sets a new value for property criticality.

Optional attribute to determine the rendered state. Possible values are the numeric representations of the enum members of annotation com.sap.vocabularies.UI.v1.CriticalityType: 0: None 1: Error 2: Warning 3: Success

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

Param Type DefaultValue Description
oCriticality any

New value for property criticality

setCriticalityRepresentationType

Sets a new value for property criticalityRepresentationType.

Optional attribute, which can be set to control how the criticality is visualized.

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

Default value is WithIcon.

Param Type DefaultValue Description
sCriticalityRepresentationType sap.ui.comp.smartfield.CriticalityRepresentationType WithIcon

New value for property criticalityRepresentationType