Class sap.landvisz.internal.SingleDataContainerModule: sap/landvisz/internal/SingleDataContainer

extends Control

A control that shows all the tabs separately for a better view

Constructor Summary
new sap.landvisz.internal.SingleDataContainer(sId?, mSettings?)Constructor for a new internal/SingleDataContainer.
Event Summary
closed(oControlEvent)called when Single view model is closed
Events borrowed from class sap.ui.core.Control
Method Summary
sap.landvisz.internal.SingleDataContainer.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.landvisz.internal.SingleDataContainer with name sClassName and enriches it with the information contained in oClassInfo.
sap.landvisz.internal.SingleDataContainer.getMetadata()Returns a metadata object for class sap.landvisz.internal.SingleDataContainer.
addProperty(oProperty)Adds some property oProperty to the aggregation named properties.
attachClosed(oData?, fnFunction, oListener?)Attach event handler fnFunction to the 'closed' event of this sap.landvisz.internal.SingleDataContainer.
destroyProperties()Destroys all the properties in the aggregation named properties.
detachClosed(fnFunction, oListener)Detach event handler fnFunction from the 'closed' event of this sap.landvisz.internal.SingleDataContainer.
fireClosed(mArguments?)Fire event closed to attached listeners.
getHeader()Getter for property header.
getProperties()Getter for aggregation properties.
getRenderingSize()Getter for property renderingSize.
indexOfProperty(oProperty)Checks for the provided sap.ui.core.Control in the aggregation named properties and returns its index if found or -1 otherwise.
insertProperty(oProperty, iIndex)Inserts a property into the aggregation named properties.
isOpen()returns true if show all option is open
removeAllProperties()Removes all the controls in the aggregation named properties.
removeProperty(vProperty)Removes an property from the aggregation named properties.
setHeader(sHeader)Setter for property header.
setRenderingSize(sRenderingSize)Setter for property renderingSize.
Constructor Detail
new sap.landvisz.internal.SingleDataContainer(sId?, mSettings?)
Constructor for a new internal/SingleDataContainer.

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
  • Aggregations
  • Associations
    • Events
      • closed : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
    Parameters:
    {string}sId? id for the new control, generated automatically if no id is given
    {object}mSettings? initial settings for the new control
    Event Detail
    closed(oControlEvent)
    called when Single view model is closed
    Parameters:
    {sap.ui.base.Event}oControlEvent
    {sap.ui.base.EventProvider}oControlEvent.getSource
    {object}oControlEvent.getParameters
    Method Detail
    sap.landvisz.internal.SingleDataContainer.extend(sClassName, oClassInfo?, FNMetaImpl?): function
    Creates a new subclass of class sap.landvisz.internal.SingleDataContainer with name sClassName and enriches it with the information contained in oClassInfo.

    oClassInfo might contain the same kind of informations as described in Element.extend.

    Parameters:
    {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.
    Returns:
    {function} the created class / constructor function
    sap.landvisz.internal.SingleDataContainer.getMetadata(): sap.ui.base.Metadata
    Returns a metadata object for class sap.landvisz.internal.SingleDataContainer.
    Returns:
    {sap.ui.base.Metadata} Metadata object describing this class
    Adds some property oProperty to the aggregation named properties.
    Parameters:
    {sap.ui.core.Control}oProperty the property to add; if empty, nothing is inserted
    Returns:
    {sap.landvisz.internal.SingleDataContainer}this to allow method chaining
    attachClosed(oData?, fnFunction, oListener?): sap.landvisz.internal.SingleDataContainer
    Attach event handler fnFunction to the 'closed' event of this sap.landvisz.internal.SingleDataContainer.
    . When called, the context of the event handler (its this) will be bound to oListener if specified otherwise to this sap.landvisz.internal.SingleDataContainer.
    itself.

    called when Single view model is closed

    Parameters:
    {object}oData? An application specific payload object, that will be passed to the event handler along with the event object when firing the event.
    {function}fnFunction The function to call, when the event occurs.
    {object}oListener? Context object to call the event handler with. Defaults to this sap.landvisz.internal.SingleDataContainer.
    itself.
    Returns:
    {sap.landvisz.internal.SingleDataContainer}this to allow method chaining
    Destroys all the properties in the aggregation named properties.
    Returns:
    {sap.landvisz.internal.SingleDataContainer}this to allow method chaining
    detachClosed(fnFunction, oListener): sap.landvisz.internal.SingleDataContainer
    Detach event handler fnFunction from the 'closed' event of this sap.landvisz.internal.SingleDataContainer.

    The passed function and listener object must match the ones used for event registration.

    Parameters:
    {function}fnFunction The function to call, when the event occurs.
    {object}oListener Context object on which the given function had to be called.
    Returns:
    {sap.landvisz.internal.SingleDataContainer}this to allow method chaining
    Fire event closed to attached listeners.
    Parameters:
    {Map}mArguments? the arguments to pass along with the event.
    Returns:
    {sap.landvisz.internal.SingleDataContainer}this to allow method chaining
    getHeader(): string
    Getter for property header. header of the tab

    Default value is empty/undefined

    Returns:
    {string} the value of property header
    getProperties(): sap.ui.core.Control[]
    Getter for aggregation properties.
    properties that are aggregated to the data container region of tabs
    Returns:
    {sap.ui.core.Control[]}
    getRenderingSize(): string
    Getter for property renderingSize. rendering size of the system

    Default value is empty/undefined

    Returns:
    {string} the value of property renderingSize
    indexOfProperty(oProperty): int
    Checks for the provided sap.ui.core.Control in the aggregation named properties and returns its index if found or -1 otherwise.
    Parameters:
    {sap.ui.core.Control}oProperty the property whose index is looked for.
    Returns:
    {int} the index of the provided control in the aggregation if found, or -1 otherwise
    insertProperty(oProperty, iIndex): sap.landvisz.internal.SingleDataContainer
    Inserts a property into the aggregation named properties.
    Parameters:
    {sap.ui.core.Control}oProperty the property to insert; if empty, nothing is inserted
    {int}iIndex the 0-based index the property should be inserted at; for a negative value of iIndex, the property is inserted at position 0; for a value greater than the current size of the aggregation, the property is inserted at the last position
    Returns:
    {sap.landvisz.internal.SingleDataContainer}this to allow method chaining
    isOpen(): void
    returns true if show all option is open
    removeAllProperties(): sap.ui.core.Control[]
    Removes all the controls in the aggregation named properties.
    Additionally unregisters them from the hosting UIArea.
    Returns:
    {sap.ui.core.Control[]} an array of the removed elements (might be empty)
    removeProperty(vProperty): sap.ui.core.Control
    Removes an property from the aggregation named properties.
    Parameters:
    {int|string|sap.ui.core.Control}vProperty the property to remove or its index or id
    Returns:
    {sap.ui.core.Control} the removed property or null
    Setter for property header.

    Default value is empty/undefined

    Parameters:
    {string}sHeader new value for property header
    Returns:
    {sap.landvisz.internal.SingleDataContainer}this to allow method chaining
    setRenderingSize(sRenderingSize): sap.landvisz.internal.SingleDataContainer
    Setter for property renderingSize.

    Default value is empty/undefined

    Parameters:
    {string}sRenderingSize new value for property renderingSize
    Returns:
    {sap.landvisz.internal.SingleDataContainer}this to allow method chaining