Class sap.suite.ui.commons.BusinessCardModule: sap/suite/ui/commons/BusinessCard

extends Control

This control allows you to display business card information including an image, first title (either URL link or text), second title, and multiple text lines.

Deprecated API:Since version 1.32. Deprecated. Standard Fiori technology should be used.

Constructor Summary
new sap.suite.ui.commons.BusinessCard(sId?, mSettings?)Constructor for a new BusinessCard.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.suite.ui.commons.BusinessCard.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.suite.ui.commons.BusinessCard with name sClassName and enriches it with the information contained in oClassInfo.
sap.suite.ui.commons.BusinessCard.getMetadata()Returns a metadata object for class sap.suite.ui.commons.BusinessCard.
destroyContent()Destroys the content in the aggregation named content.
destroyFirstTitle()Destroys the firstTitle in the aggregation named firstTitle.
getContent()Getter for aggregation content.
getFirstTitle()Getter for aggregation firstTitle.
getIconPath()Getter for property iconPath.
getImageTooltip()Getter for property imageTooltip.
getSecondTitle()Getter for property secondTitle.
getType()Getter for property type.
getWidth()Getter for property width.
setContent(oContent)Setter for the aggregated content.
setFirstTitle(oFirstTitle)Setter for the aggregated firstTitle.
setIconPath(sIconPath)Setter for property iconPath.
setImageTooltip(sImageTooltip)Setter for property imageTooltip.
setSecondTitle(sSecondTitle)Setter for property secondTitle.
setType(sType)Setter for property type.
setWidth(sWidth)Setter for property width.
Constructor Detail
new sap.suite.ui.commons.BusinessCard(sId?, mSettings?)
Constructor for a new BusinessCard.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers.

If the name of a setting is ambiguous (e.g. a property has the same name as an event), then the framework assumes property, aggregation, association, event in that order. To override this automatic resolution, one of the prefixes "aggregation:", "association:" or "event:" can be added to the name of the setting (such a prefixed name must be enclosed in single or double quotes).

The supported settings are:

Parameters:
{string}sId? id for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Deprecated:
Since version 1.32. Deprecated. Standard Fiori technology should be used.
Method Detail
sap.suite.ui.commons.BusinessCard.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.suite.ui.commons.BusinessCard with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of informations as described in Element.extend.

Parameters:
{string}sClassName name of the class to be created
{object}oClassInfo? object literal with informations about the class
{function}FNMetaImpl? constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata.
Returns:
{function} the created class / constructor function
sap.suite.ui.commons.BusinessCard.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.suite.ui.commons.BusinessCard.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
Destroys the content in the aggregation named content.
Returns:
{sap.suite.ui.commons.BusinessCard}this to allow method chaining
destroyFirstTitle(): sap.suite.ui.commons.BusinessCard
Destroys the firstTitle in the aggregation named firstTitle.
Returns:
{sap.suite.ui.commons.BusinessCard}this to allow method chaining
getContent(): sap.ui.core.Control
Getter for aggregation content.
The content of the BusinessCard body must be provided by the application developer.
Returns:
{sap.ui.core.Control}
getFirstTitle(): sap.ui.core.Control
Getter for aggregation firstTitle.
Any control that can display a title. Content of this control appears at the first position in BusinessCard. Recomended controls: sap.ui.commons.Label and sap.ui.commons.Link.
Returns:
{sap.ui.core.Control}
getIconPath(): sap.ui.core.URI
Getter for property iconPath. A path to the BusinessCard icon.

Default value is empty/undefined

Returns:
{sap.ui.core.URI} the value of property iconPath
getImageTooltip(): string
Getter for property imageTooltip. A tooltip that is set for an image.

Default value is empty/undefined

Returns:
{string} the value of property imageTooltip
getSecondTitle(): string
Getter for property secondTitle. A short text line that describes this BusinessCard.

Default value is empty/undefined

Returns:
{string} the value of property secondTitle
getType(): string
Getter for property type. Title of the BusinessCard that describes its type.

Default value is empty/undefined

Returns:
{string} the value of property type
getWidth(): sap.ui.core.CSSSize
Getter for property width. Width of the BusinessCard. Alternatively, CSS size can be set in %, px, or em.

Default value is empty/undefined

Returns:
{sap.ui.core.CSSSize} the value of property width
setContent(oContent): sap.suite.ui.commons.BusinessCard
Setter for the aggregated content.
Parameters:
{sap.ui.core.Control}oContent
Returns:
{sap.suite.ui.commons.BusinessCard}this to allow method chaining
setFirstTitle(oFirstTitle): sap.suite.ui.commons.BusinessCard
Setter for the aggregated firstTitle.
Parameters:
{sap.ui.core.Control}oFirstTitle
Returns:
{sap.suite.ui.commons.BusinessCard}this to allow method chaining
setIconPath(sIconPath): sap.suite.ui.commons.BusinessCard
Setter for property iconPath.

Default value is empty/undefined

Parameters:
{sap.ui.core.URI}sIconPath new value for property iconPath
Returns:
{sap.suite.ui.commons.BusinessCard}this to allow method chaining
setImageTooltip(sImageTooltip): sap.suite.ui.commons.BusinessCard
Setter for property imageTooltip.

Default value is empty/undefined

Parameters:
{string}sImageTooltip new value for property imageTooltip
Returns:
{sap.suite.ui.commons.BusinessCard}this to allow method chaining
setSecondTitle(sSecondTitle): sap.suite.ui.commons.BusinessCard
Setter for property secondTitle.

Default value is empty/undefined

Parameters:
{string}sSecondTitle new value for property secondTitle
Returns:
{sap.suite.ui.commons.BusinessCard}this to allow method chaining
Setter for property type.

Default value is empty/undefined

Parameters:
{string}sType new value for property type
Returns:
{sap.suite.ui.commons.BusinessCard}this to allow method chaining
Setter for property width.

Default value is empty/undefined

Parameters:
{sap.ui.core.CSSSize}sWidth new value for property width
Returns:
{sap.suite.ui.commons.BusinessCard}this to allow method chaining