class sap.ui.generic.app.navigation.service.PresentationVariant

UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/generic/app/navigation/service/PresentationVariant
Application Component: CA-UI5-FE-NAV

Creates a new instance of a PresentationVariant class. If no parameter is passed, an new empty instance is created whose ID has been set to "". Passing a JSON-serialized string complying to the Selection Variant Specification will parse it, and the newly created instance will contain the same information.


Constructor

new sap.ui.generic.app.navigation.service.PresentationVariant(vPresentationVariant?)
Param Type Default Value Description
vPresentationVariant? string object

If of type string, the selection variant is JSON-formatted; if of type object, the object represents a selection variant


Methods Overview

Method Description
sap.ui.generic.app.navigation.service.PresentationVariant.extend

Creates a new subclass of class sap.ui.generic.app.navigation.service.PresentationVariant with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.fe.navigation.PresentationVariant.extend.

sap.ui.generic.app.navigation.service.PresentationVariant.getChartVisualization

Gets the chart visualization property.

sap.ui.generic.app.navigation.service.PresentationVariant.getContextUrl

Gets the current context URL intended for the query.

sap.ui.generic.app.navigation.service.PresentationVariant.getID

Returns the identification of the selection variant.

sap.ui.generic.app.navigation.service.PresentationVariant.getMetadata

Returns a metadata object for class sap.ui.generic.app.navigation.service.PresentationVariant.

sap.ui.generic.app.navigation.service.PresentationVariant.getProperties

Gets the more trivial properties. Basically all properties with the exception of the Visualization.

sap.ui.generic.app.navigation.service.PresentationVariant.getTableVisualization

Gets the table visualization property.

sap.ui.generic.app.navigation.service.PresentationVariant.getText

Returns the current text / description of this selection variant.

sap.ui.generic.app.navigation.service.PresentationVariant.isEmpty

Returns true if the presentation variant does not contain any properties. nor ranges.

sap.ui.generic.app.navigation.service.PresentationVariant.setChartVisualization

Sets the chart visualization property.

sap.ui.generic.app.navigation.service.PresentationVariant.setContextUrl

Sets the context URL.

sap.ui.generic.app.navigation.service.PresentationVariant.setID

Sets the identification of the selection variant.

sap.ui.generic.app.navigation.service.PresentationVariant.setProperties

Sets the more trivial properties. Basically all properties with the exception of the Visualization.

sap.ui.generic.app.navigation.service.PresentationVariant.setTableVisualization

Sets the table visualization property.

sap.ui.generic.app.navigation.service.PresentationVariant.setText

Sets the text / description of the selection variant.

sap.ui.generic.app.navigation.service.PresentationVariant.toJSONObject

Returns the external representation of the selection variant as JSON object.

sap.ui.generic.app.navigation.service.PresentationVariant.toJSONString

Serializes this instance into a JSON-formatted string.

sap.ui.generic.app.navigation.service.PresentationVariant.extend

Creates a new subclass of class sap.ui.generic.app.navigation.service.PresentationVariant with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.fe.navigation.PresentationVariant.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

sap.ui.generic.app.navigation.service.PresentationVariant.getChartVisualization

Gets the chart visualization property.

sap.ui.generic.app.navigation.service.PresentationVariant.getContextUrl

Gets the current context URL intended for the query.

sap.ui.generic.app.navigation.service.PresentationVariant.getID

Returns the identification of the selection variant.

sap.ui.generic.app.navigation.service.PresentationVariant.getMetadata

Returns a metadata object for class sap.ui.generic.app.navigation.service.PresentationVariant.

sap.ui.generic.app.navigation.service.PresentationVariant.getProperties

Gets the more trivial properties. Basically all properties with the exception of the Visualization.

sap.ui.generic.app.navigation.service.PresentationVariant.getTableVisualization

Gets the table visualization property.

sap.ui.generic.app.navigation.service.PresentationVariant.getText

Returns the current text / description of this selection variant.

sap.ui.generic.app.navigation.service.PresentationVariant.isEmpty

Returns true if the presentation variant does not contain any properties. nor ranges.

sap.ui.generic.app.navigation.service.PresentationVariant.setChartVisualization

Sets the chart visualization property.

Param Type DefaultValue Description
mProperties Object<string,any>

to be used for the chart visualization.

sap.ui.generic.app.navigation.service.PresentationVariant.setContextUrl

Sets the context URL.

Param Type DefaultValue Description
sURL string

The URL of the context

sap.ui.generic.app.navigation.service.PresentationVariant.setID

Sets the identification of the selection variant.

Param Type DefaultValue Description
sId string

The new identification of the selection variant

sap.ui.generic.app.navigation.service.PresentationVariant.setProperties

Sets the more trivial properties. Basically all properties with the exception of the Visualization.

Param Type DefaultValue Description
mProperties Object<string,any>

properties to be used.

sap.ui.generic.app.navigation.service.PresentationVariant.setTableVisualization

Sets the table visualization property.

Param Type DefaultValue Description
mProperties Object<string,any>

to be used for the table visualization.

sap.ui.generic.app.navigation.service.PresentationVariant.setText

Sets the text / description of the selection variant.

Param Type DefaultValue Description
sNewText string

The new description to be used

sap.ui.generic.app.navigation.service.PresentationVariant.toJSONObject

Returns the external representation of the selection variant as JSON object.

sap.ui.generic.app.navigation.service.PresentationVariant.toJSONString

Serializes this instance into a JSON-formatted string.