abstract class sap.m.semantic.SemanticControl

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/m/semantic/SemanticControl
Application Component: CA-UI5-CTR

A semantic control is an abstraction for either a sap.m.semantic.SemanticButton or sap.m.semantic.SemanticSelect , eligible for aggregation content of a sap.m.semantic.SemanticPage.


Constructor

Constructor for a new SemanticControl.

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.m.semantic.SemanticControl(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
visible boolean true

See sap.ui.core.Control#visible

Visibility: public

Aggregations

Default Aggregation:

Name Cardinality Type Description
_control 0..1 sap.ui.core.Control

The internal control instance, that is abstracted by the semantic control. Can be sap.m.Button, sap.m.semantic.SemanticOverflowToolbarButton or sap.m.Select


Methods Overview

Method Description
sap.m.semantic.SemanticControl.extend

Creates a new subclass of class sap.m.semantic.SemanticControl 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.

sap.m.semantic.SemanticControl.getMetadata

Returns a metadata object for class sap.m.semantic.SemanticControl.

getPopupAnchorDomRef

Implementation of a commonly used function that adapts sap.ui.core.Element to provide DOM reference for opening popovers.

getVisible

Gets current value of property visible.

See sap.ui.core.Control#visible

Default value is true.

setVisible

Sets a new value for property visible.

See sap.ui.core.Control#visible

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

Default value is true.

sap.m.semantic.SemanticControl.extend

Creates a new subclass of class sap.m.semantic.SemanticControl 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

sap.m.semantic.SemanticControl.getMetadata

Returns a metadata object for class sap.m.semantic.SemanticControl.

getPopupAnchorDomRef

Implementation of a commonly used function that adapts sap.ui.core.Element to provide DOM reference for opening popovers.

getVisible

Gets current value of property visible.

See sap.ui.core.Control#visible

Default value is true.

setVisible

Sets a new value for property visible.

See sap.ui.core.Control#visible

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

Default value is true.

Param Type DefaultValue Description
bVisible boolean true

New value for property visible