Class sap.ui.comp.smartfilterbar.SelectOptionModule: sap/ui/comp/smartfilterbar/SelectOption

extends Element

A Select Option can be used to specify default filter values for a control configuration of the SmartFilterBar.

Constructor Summary
new sap.ui.comp.smartfilterbar.SelectOption(sId?, mSettings?)Constructor for a new smartfilterbar/SelectOption.
Method Summary
sap.ui.comp.smartfilterbar.SelectOption.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.comp.smartfilterbar.SelectOption with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.comp.smartfilterbar.SelectOption.getMetadata()Returns a metadata object for class sap.ui.comp.smartfilterbar.SelectOption.
getHigh()Gets current value of property high.
getLow()Gets current value of property low.
getOperator()Gets current value of property operator.
getSign()Gets current value of property sign.
setHigh(sHigh)Sets a new value for property high.
setLow(sLow)Sets a new value for property low.
setOperator(sOperator)Sets a new value for property operator.
setSign(sSign)Sets a new value for property sign.
Constructor Detail
new sap.ui.comp.smartfilterbar.SelectOption(sId?, mSettings?)
Constructor for a new smartfilterbar/SelectOption.

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.smartfilterbar.SelectOption.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.comp.smartfilterbar.SelectOption 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.smartfilterbar.SelectOption.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.comp.smartfilterbar.SelectOption.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getHigh(): string
Gets current value of property high.

The high value for a select option. The high value is only required for a few operators, e.g. BT (between).

Returns:
{string} Value of property high
getLow(): string
Gets current value of property low.

The low value for a select option.

Returns:
{string} Value of property low
getOperator(): string
Gets current value of property operator.

The operator for a select option. The default value is EQ "for equals". Possible values can be found here: sap.ui.comp.smartfilterbar.SelectOption.OPERATOR.

Default value is EQ.

Returns:
{string} Value of property operator
getSign(): string
Gets current value of property sign.

The sign for a Select Option. Possible values are I for include or E for exclude. Constants can be found here: sap.ui.comp.smartfilterbar.SelectOption.SIGN

Default value is I.

Returns:
{string} Value of property sign
Sets a new value for property high.

The high value for a select option. The high value is only required for a few operators, e.g. BT (between).

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

Parameters:
{string}sHigh New value for property high
Returns:
{sap.ui.comp.smartfilterbar.SelectOption} Reference to this in order to allow method chaining
Sets a new value for property low.

The low value for a select option.

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

Parameters:
{string}sLow New value for property low
Returns:
{sap.ui.comp.smartfilterbar.SelectOption} Reference to this in order to allow method chaining
Sets a new value for property operator.

The operator for a select option. The default value is EQ "for equals". Possible values can be found here: sap.ui.comp.smartfilterbar.SelectOption.OPERATOR.

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

Default value is EQ.

Parameters:
{string}sOperator New value for property operator
Returns:
{sap.ui.comp.smartfilterbar.SelectOption} Reference to this in order to allow method chaining
Sets a new value for property sign.

The sign for a Select Option. Possible values are I for include or E for exclude. Constants can be found here: sap.ui.comp.smartfilterbar.SelectOption.SIGN

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

Default value is I.

Parameters:
{string}sSign New value for property sign
Returns:
{sap.ui.comp.smartfilterbar.SelectOption} Reference to this in order to allow method chaining