abstract class sap.ui.mdc.field.MultiValueFieldItem

Visiblity: restricted
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/mdc/field/MultiValueFieldItem
Application Component: CA-UI5-MDC

Base type for MultiValueFieldItem control.


Constructor

Constructor for a new MultiValueFieldItem.

The MultiValueField control holds its values as items. The MultiValueFieldItem element defines these items.

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.mdc.field.MultiValueFieldItem(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
description string

Description of the item.

Visibility: public
key any

Key of the item.

Visibility: public

Methods Overview

Method Description
sap.ui.mdc.field.MultiValueFieldItem.extend

Creates a new subclass of class sap.ui.mdc.field.MultiValueFieldItem 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.

getDescription

Gets current value of property description.

Description of the item.

getKey

Gets current value of property key.

Key of the item.

sap.ui.mdc.field.MultiValueFieldItem.getMetadata

Returns a metadata object for class sap.ui.mdc.field.MultiValueFieldItem.

setDescription

Sets a new value for property description.

Description of the item.

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

setKey

Sets a new value for property key.

Key of the item.

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

sap.ui.mdc.field.MultiValueFieldItem.extend

Creates a new subclass of class sap.ui.mdc.field.MultiValueFieldItem 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

getDescription

Gets current value of property description.

Description of the item.

getKey

Gets current value of property key.

Key of the item.

sap.ui.mdc.field.MultiValueFieldItem.getMetadata

Returns a metadata object for class sap.ui.mdc.field.MultiValueFieldItem.

setDescription

Sets a new value for property description.

Description of the item.

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

Param Type DefaultValue Description
sDescription string

New value for property description

setKey

Sets a new value for property key.

Key of the item.

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

Param Type DefaultValue Description
oKey any

New value for property key