class sap.ui.fl.apply._internal.flexObjects.UpdatableChange

Visiblity: restricted
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/fl/apply/_internal/flexObjects/UpdatableChange
Application Component: CA-UI5-FL

Constructor

Flexibility change class. Stores change content and related information. This class also be updated as well as reverted.

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.fl.apply._internal.flexObjects.UpdatableChange()

Borrowed Properties

Name Type Default Value Description
applyState int

Describes the current state of the change regarding the application and reversion of changes. To change or retrieve the state, use the getters and setters defined in this class. Initially the state is Change.applyState.INITIAL.

Visibility: public
state string Visibility: public

Aggregations

Default Aggregation:

Name Cardinality Type Description
revertInfo 0..n sap.ui.fl.apply._internal.flexObjects.RevertData

Methods Overview

Method Description
addRevertInfo

Adds some revertInfo to the aggregation revertInfo.

destroyRevertInfo

Destroys all the revertInfo in the aggregation revertInfo.

sap.ui.fl.apply._internal.flexObjects.UpdatableChange.extend

Creates a new subclass of class sap.ui.fl.apply._internal.flexObjects.UpdatableChange 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.fl.Change.extend.

sap.ui.fl.apply._internal.flexObjects.UpdatableChange.getMetadata

Returns a metadata object for class sap.ui.fl.apply._internal.flexObjects.UpdatableChange.

getRevertInfo

Gets content of aggregation revertInfo.

indexOfRevertInfo

Checks for the provided sap.ui.fl.apply._internal.flexObjects.RevertData in the aggregation revertInfo. and returns its index if found or -1 otherwise.

insertRevertInfo

Inserts a revertInfo into the aggregation revertInfo.

removeAllRevertInfo

Removes all the controls from the aggregation revertInfo.

Additionally, it unregisters them from the hosting UIArea.

removeRevertInfo

Removes a revertInfo from the aggregation revertInfo.

addRevertInfo

Adds some revertInfo to the aggregation revertInfo.

Param Type DefaultValue Description
oRevertInfo sap.ui.fl.apply._internal.flexObjects.RevertData

The revertInfo to add; if empty, nothing is inserted

destroyRevertInfo

Destroys all the revertInfo in the aggregation revertInfo.

sap.ui.fl.apply._internal.flexObjects.UpdatableChange.extend

Creates a new subclass of class sap.ui.fl.apply._internal.flexObjects.UpdatableChange 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.fl.Change.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.fl.apply._internal.flexObjects.UpdatableChange.getMetadata

Returns a metadata object for class sap.ui.fl.apply._internal.flexObjects.UpdatableChange.

getRevertInfo

Gets content of aggregation revertInfo.

indexOfRevertInfo

Checks for the provided sap.ui.fl.apply._internal.flexObjects.RevertData in the aggregation revertInfo. and returns its index if found or -1 otherwise.

Param Type DefaultValue Description
oRevertInfo sap.ui.fl.apply._internal.flexObjects.RevertData

The revertInfo whose index is looked for

insertRevertInfo

Inserts a revertInfo into the aggregation revertInfo.

Param Type DefaultValue Description
oRevertInfo sap.ui.fl.apply._internal.flexObjects.RevertData

The revertInfo to insert; if empty, nothing is inserted

iIndex int

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

removeAllRevertInfo

Removes all the controls from the aggregation revertInfo.

Additionally, it unregisters them from the hosting UIArea.

removeRevertInfo

Removes a revertInfo from the aggregation revertInfo.

Param Type DefaultValue Description
vRevertInfo int string sap.ui.fl.apply._internal.flexObjects.RevertData

The revertInfo to remove or its index or id