class sap.m.WheelSliderContainer

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

A picker list container control used to hold sliders of type sap.m.WheelSlider.


Constructor

Constructor for a new WheelSliderContainer.

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.WheelSliderContainer(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
height sap.ui.core.CSSSize

Sets the height of the container. If percentage value is used, the parent container must have specified height.

Visibility: public
labelText string

Defines the text of the picker label.

Visibility: public
width sap.ui.core.CSSSize

Sets the width of the container. The minimum width is 320px.

Visibility: public

Aggregations

Default Aggregation:

Name Cardinality Type Description
sliders 0..n sap.m.WheelSlider

The sliders in the container.


Methods Overview

Method Description
addSlider

Adds some slider to the aggregation sliders.

destroySliders

Destroys all the sliders in the aggregation sliders.

sap.m.WheelSliderContainer.extend

Creates a new subclass of class sap.m.WheelSliderContainer 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.Control.extend.

getHeight

Gets current value of property height.

Sets the height of the container. If percentage value is used, the parent container must have specified height.

getLabelText

Gets current value of property labelText.

Defines the text of the picker label.

sap.m.WheelSliderContainer.getMetadata

Returns a metadata object for class sap.m.WheelSliderContainer.

getSliders

Gets content of aggregation sliders.

The sliders in the container.

getWidth

Gets current value of property width.

Sets the width of the container. The minimum width is 320px.

indexOfSlider

Checks for the provided sap.m.WheelSlider in the aggregation sliders. and returns its index if found or -1 otherwise.

insertSlider

Inserts a slider into the aggregation sliders.

removeAllSliders

Removes all the controls from the aggregation sliders.

Additionally, it unregisters them from the hosting UIArea.

removeSlider

Removes a slider from the aggregation sliders.

setHeight

Sets a new value for property height.

Sets the height of the container. If percentage value is used, the parent container must have specified height.

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

setLabelText

Sets a new value for property labelText.

Defines the text of the picker label.

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

setWidth

Sets a new value for property width.

Sets the width of the container. The minimum width is 320px.

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

addSlider

Adds some slider to the aggregation sliders.

Param Type DefaultValue Description
oSlider sap.m.WheelSlider

The slider to add; if empty, nothing is inserted

destroySliders

Destroys all the sliders in the aggregation sliders.

sap.m.WheelSliderContainer.extend

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

getHeight

Gets current value of property height.

Sets the height of the container. If percentage value is used, the parent container must have specified height.

getLabelText

Gets current value of property labelText.

Defines the text of the picker label.

sap.m.WheelSliderContainer.getMetadata

Returns a metadata object for class sap.m.WheelSliderContainer.

getSliders

Gets content of aggregation sliders.

The sliders in the container.

getWidth

Gets current value of property width.

Sets the width of the container. The minimum width is 320px.

indexOfSlider

Checks for the provided sap.m.WheelSlider in the aggregation sliders. and returns its index if found or -1 otherwise.

Param Type DefaultValue Description
oSlider sap.m.WheelSlider

The slider whose index is looked for

insertSlider

Inserts a slider into the aggregation sliders.

Param Type DefaultValue Description
oSlider sap.m.WheelSlider

The slider to insert; if empty, nothing is inserted

iIndex int

The 0-based index the slider should be inserted at; for a negative value of iIndex, the slider is inserted at position 0; for a value greater than the current size of the aggregation, the slider is inserted at the last position

removeAllSliders

Removes all the controls from the aggregation sliders.

Additionally, it unregisters them from the hosting UIArea.

removeSlider

Removes a slider from the aggregation sliders.

Param Type DefaultValue Description
vSlider int string sap.m.WheelSlider

The slider to remove or its index or id

setHeight

Sets a new value for property height.

Sets the height of the container. If percentage value is used, the parent container must have specified height.

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

Param Type DefaultValue Description
sHeight sap.ui.core.CSSSize

New value for property height

setLabelText

Sets a new value for property labelText.

Defines the text of the picker label.

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

Param Type DefaultValue Description
sLabelText string

New value for property labelText

setWidth

Sets a new value for property width.

Sets the width of the container. The minimum width is 320px.

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

Param Type DefaultValue Description
sWidth sap.ui.core.CSSSize

New value for property width