Defines a possible object status control to be rendered. The smart field may ignore the proposal.
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 |
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 |
|
criticalityRepresentationType | sap.ui.comp.smartfield.CriticalityRepresentationType | WithIcon | Optional attribute, which can be set to control how the criticality is visualized. Visibility: public |
Method | Description |
---|---|
sap.ui.comp.smartfield.ObjectStatus.extend |
Creates a new subclass of class sap.ui.comp.smartfield.ObjectStatus with name
|
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 |
getCriticalityRepresentationType |
Gets current value of property criticalityRepresentationType. Optional attribute, which can be set to control how the criticality is visualized. Default value is |
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 When called with a value of |
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 Default value is |
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 |
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
Gets current value of property criticalityRepresentationType.
Optional attribute, which can be set to control how the criticality is visualized.
Default value is WithIcon
.
Returns a metadata object for class sap.ui.comp.smartfield.ObjectStatus.
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 |
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 |