Class sap.ui.comp.smartfield.SmartLabelModule: sap/ui/comp/smartfield/SmartLabel

extends Label

The SmartLabel control extends sap.m.Label and displays the label for SmartField. It uses the annotations sap:label or com.sap.vocabularies.Common.v1.Label for the label text and sap:quickinfo or com.sap.vocabularies.Common.v1.QuickInfo for the tooltip. The mandatory indicator is obtained from the SmartField control. The association with a SmartField control is built using the setLabelFor method.

Constructor Summary
new sap.ui.comp.smartfield.SmartLabel(sId?, mSettings?)Constructor for a new smartfield/SmartLabel.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.ui.comp.smartfield.SmartLabel.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.comp.smartfield.SmartLabel with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.comp.smartfield.SmartLabel.getMetadata()Returns a metadata object for class sap.ui.comp.smartfield.SmartLabel.
destroy(bSuppressInvalidate)Cleans up the resources associated with this element and all its children.
setLabelFor(oSmartField)Assigns SmartField.
Constructor Detail
new sap.ui.comp.smartfield.SmartLabel(sId?, mSettings?)
Constructor for a new smartfield/SmartLabel.
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.ui.comp.smartfield.SmartLabel.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.comp.smartfield.SmartLabel with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.m.Label.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.smartfield.SmartLabel.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.comp.smartfield.SmartLabel.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
destroy(bSuppressInvalidate)
Cleans up the resources associated with this element and all its children. After an element has been destroyed, it can no longer be used on the UI. Applications should call this method if they don't need the element any longer.
Parameters:
{boolean}bSuppressInvalidate If set to true, UI element is not marked for redraw
setLabelFor(oSmartField)
Assigns SmartField.
Parameters:
{sap.ui.comp.SmartField}oSmartField The associated SmartField control