Class sap.ui.comp.navpopover.LinkDataModule: sap/ui/comp/navpopover/LinkData

extends Element

Stores display text together with a navigation target hyperlink.
The LinkData class is used by SmartLink and SemanticObjectController to define the visible links on NavigationPopover.

Constructor Summary
new sap.ui.comp.navpopover.LinkData(sId?, mSettings?)Constructor for a new navpopover/LinkData.
Method Summary
sap.ui.comp.navpopover.LinkData.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.comp.navpopover.LinkData with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.comp.navpopover.LinkData.getMetadata()Returns a metadata object for class sap.ui.comp.navpopover.LinkData.
getHref()Gets current value of property href.
getTarget()Gets current value of property target.
getText()Gets current value of property text.
setHref(sHref)Sets a new value for property href.
setTarget(sTarget)Sets a new value for property target.
setText(sText)Sets a new value for property text.
Constructor Detail
new sap.ui.comp.navpopover.LinkData(sId?, mSettings?)
Constructor for a new navpopover/LinkData.

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.Element 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.ui.comp.navpopover.LinkData.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.comp.navpopover.LinkData 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.

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.navpopover.LinkData.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.comp.navpopover.LinkData.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getHref(): string
Gets current value of property href.

Destination link for a navigation operation in internal format. Note: The link will be encoded before it is shown in external format using the hrefForExternal method of the CrossApplicationNavigation service.

Since:
1.28.0
Returns:
{string} Value of property href
getTarget(): string
Gets current value of property target.

The standard values for the target property are: _self, _top, _blank, _parent, _search. Alternatively, a frame name can be entered. This property is only used if the href property is set.

Returns:
{string} Value of property target
getText(): string
Gets current value of property text.

Text which can be displayed on the UI

Since:
1.28.0
Returns:
{string} Value of property text
Sets a new value for property href.

Destination link for a navigation operation in internal format. Note: The link will be encoded before it is shown in external format using the hrefForExternal method of the CrossApplicationNavigation service.

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

Parameters:
{string}sHref New value for property href
Since:
1.28.0
Returns:
{sap.ui.comp.navpopover.LinkData} Reference to this in order to allow method chaining
setTarget(sTarget): sap.ui.comp.navpopover.LinkData
Sets a new value for property target.

The standard values for the target property are: _self, _top, _blank, _parent, _search. Alternatively, a frame name can be entered. This property is only used if the href property is set.

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

Parameters:
{string}sTarget New value for property target
Returns:
{sap.ui.comp.navpopover.LinkData} Reference to this in order to allow method chaining
Sets a new value for property text.

Text which can be displayed on the UI

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

Parameters:
{string}sText New value for property text
Since:
1.28.0
Returns:
{sap.ui.comp.navpopover.LinkData} Reference to this in order to allow method chaining