Class sap.landvisz.OptionModule: sap/landvisz/Option
Options for solution entities
sClassName
and enriches it with the information contained in oClassInfo
.oOptionEntity
to the aggregation named optionEntities
.sap.landvisz.OptionEntity
in the aggregation named optionEntities
and returns its index if found or -1 otherwise.optionEntities
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers.
If the name of a setting is ambiguous (e.g. a property has the same name as an event), then the framework assumes property, aggregation, association, event in that order. To override this automatic resolution, one of the prefixes "aggregation:", "association:" or "event:" can be added to the name of the setting (such a prefixed name must be enclosed in single or double quotes).
The supported settings are:
- Properties
- type : string
- currentEntity : string
- Aggregations
- optionEntities : sap.landvisz.OptionEntity[]
- Associations
- Events
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of informations as described in Element.extend.
{string} | sClassName | name of the class to be created |
{object} | oClassInfo? | object literal with informations about the class |
{function} | FNMetaImpl? | constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata. |
{function} | the created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
oOptionEntity
to the aggregation named optionEntities
. {sap.landvisz.OptionEntity} | oOptionEntity | the optionEntity to add; if empty, nothing is inserted |
{sap.landvisz.Option} | this to allow method chaining |
optionEntities
. {sap.landvisz.Option} | this to allow method chaining |
currentEntity
. Entity on which options are applicable Default value is empty/undefined
{string} | the value of property currentEntity |
optionEntities
.Entity to be rendered as options
{sap.landvisz.OptionEntity[]} |
type
. type of main entity which has a replacement Default value is empty/undefined
{string} | the value of property type |
sap.landvisz.OptionEntity
in the aggregation named optionEntities
and returns its index if found or -1 otherwise. {sap.landvisz.OptionEntity} | oOptionEntity | the optionEntity whose index is looked for. |
{int} | the index of the provided control in the aggregation if found, or -1 otherwise |
optionEntities
. {sap.landvisz.OptionEntity} | oOptionEntity | the optionEntity to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the optionEntity should be inserted at; for a negative value of iIndex , the optionEntity is inserted at position 0; for a value greater than the current size of the aggregation, the optionEntity is inserted at the last position |
{sap.landvisz.Option} | this to allow method chaining |
optionEntities
.Additionally unregisters them from the hosting UIArea.
{sap.landvisz.OptionEntity[]} | an array of the removed elements (might be empty) |
optionEntities
. {int|string|sap.landvisz.OptionEntity} | vOptionEntity | the optionEntity to remove or its index or id |
{sap.landvisz.OptionEntity} | the removed optionEntity or null |
currentEntity
. Default value is empty/undefined
{string} | sCurrentEntity | new value for property currentEntity |
{sap.landvisz.Option} | this to allow method chaining |
type
. Default value is empty/undefined
{string} | sType | new value for property type |
{sap.landvisz.Option} | this to allow method chaining |