class sap.ui.vk.LegendItem

Control sample: sap.ui.vk.LegendItem
Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/vk/LegendItem
Application Component: CA-UI5-VTK

Legend item control


Constructor

Constructor for a new LegendItem.

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.vk.LegendItem(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
color sap.ui.core.CSSColor

show color square

Visibility: public
semanticSpotType sap.ui.vbm.SemanticType

The semantic spot type for the legend marker.

Visibility: public

Methods Overview

Method Description
sap.ui.vk.LegendItem.extend

Creates a new subclass of class sap.ui.vk.LegendItem 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.StandardListItem.extend.

getColor

Gets current value of property color.

show color square

sap.ui.vk.LegendItem.getMetadata

Returns a metadata object for class sap.ui.vk.LegendItem.

getSemanticSpotType

Gets current value of property semanticSpotType.

The semantic spot type for the legend marker.

setColor

Sets a new value for property color.

show color square

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

setSemanticSpotType

Sets a new value for property semanticSpotType.

The semantic spot type for the legend marker.

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

sap.ui.vk.LegendItem.extend

Creates a new subclass of class sap.ui.vk.LegendItem 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.StandardListItem.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

getColor

Gets current value of property color.

show color square

sap.ui.vk.LegendItem.getMetadata

Returns a metadata object for class sap.ui.vk.LegendItem.

getSemanticSpotType

Gets current value of property semanticSpotType.

The semantic spot type for the legend marker.

setColor

Sets a new value for property color.

show color square

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

Param Type DefaultValue Description
sColor sap.ui.core.CSSColor

New value for property color

setSemanticSpotType

Sets a new value for property semanticSpotType.

The semantic spot type for the legend marker.

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

Param Type DefaultValue Description
sSemanticSpotType sap.ui.vbm.SemanticType

New value for property semanticSpotType