Class sap.ui.core.ComponentContainerModule: sap/ui/core/ComponentContainer

extends Control

Component Container

Constructor Summary
new sap.ui.core.ComponentContainer(sId?, mSettings?)Constructor for a new ComponentContainer.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.ui.core.ComponentContainer.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.core.ComponentContainer with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.core.ComponentContainer.getMetadata()Returns a metadata object for class sap.ui.core.ComponentContainer.
getComponent()ID of the element which is the current target of the association component, or null.
getHandleValidation()Gets current value of property handleValidation.
getHeight()Gets current value of property height.
getName()Gets current value of property name.
getPropagateModel()Gets current value of property propagateModel.
getSettings()Gets current value of property settings.
getUrl()Gets current value of property url.
getWidth()Gets current value of property width.
setComponent(oComponent)Sets the associated component.
setHandleValidation(bHandleValidation)Sets a new value for property handleValidation.
setHeight(sHeight)Sets a new value for property height.
setName(sName)Sets a new value for property name.
setPropagateModel(bPropagateModel)Sets a new value for property propagateModel.
setSettings(oSettings)Sets a new value for property settings.
setUrl(sUrl)Sets a new value for property url.
setWidth(sWidth)Sets a new value for property width.
Constructor Detail
new sap.ui.core.ComponentContainer(sId?, mSettings?)
Constructor for a new ComponentContainer.

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.Control 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.core.ComponentContainer.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.core.ComponentContainer 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.Control.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.core.ComponentContainer.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.core.ComponentContainer.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getComponent(): sap.ui.core.UIComponent
ID of the element which is the current target of the association component, or null.
Returns:
{sap.ui.core.UIComponent}
getHandleValidation(): boolean
Gets current value of property handleValidation.

Enable/disable validation handling by MessageManager for this component. The resulting Messages will be propagated to the controls.

Default value is false.

Returns:
{boolean} Value of property handleValidation
getHeight(): sap.ui.core.CSSSize
Gets current value of property height.

Container height in CSS size

Returns:
{sap.ui.core.CSSSize} Value of property height
getName(): string
Gets current value of property name.

Component name, the package where the component is contained. The property can only be applied initially.

Returns:
{string} Value of property name
getPropagateModel(): boolean
Gets current value of property propagateModel.

Defines whether binding information is propagated to the component.

Default value is false.

Returns:
{boolean} Value of property propagateModel
getSettings(): object
Gets current value of property settings.

The settings object passed to the component when created. The property can only be applied initially.

Returns:
{object} Value of property settings
getUrl(): sap.ui.core.URI
Gets current value of property url.

The URL of the component. The property can only be applied initially.

Returns:
{sap.ui.core.URI} Value of property url
getWidth(): sap.ui.core.CSSSize
Gets current value of property width.

Container width in CSS size

Returns:
{sap.ui.core.CSSSize} Value of property width
setComponent(oComponent): sap.ui.core.ComponentContainer
Sets the associated component.
Parameters:
{sap.ui.core.UIComponent}oComponent Id of an element which becomes the new target of this component association; alternatively, an element instance may be given
Returns:
{sap.ui.core.ComponentContainer} Reference to this in order to allow method chaining
setHandleValidation(bHandleValidation): sap.ui.core.ComponentContainer
Sets a new value for property handleValidation.

Enable/disable validation handling by MessageManager for this component. The resulting Messages will be propagated to the controls.

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

Default value is false.

Parameters:
{boolean}bHandleValidation New value for property handleValidation
Returns:
{sap.ui.core.ComponentContainer} Reference to this in order to allow method chaining
setHeight(sHeight): sap.ui.core.ComponentContainer
Sets a new value for property height.

Container height in CSS size

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

Parameters:
{sap.ui.core.CSSSize}sHeight New value for property height
Returns:
{sap.ui.core.ComponentContainer} Reference to this in order to allow method chaining
Sets a new value for property name.

Component name, the package where the component is contained. The property can only be applied initially.

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

Parameters:
{string}sName New value for property name
Returns:
{sap.ui.core.ComponentContainer} Reference to this in order to allow method chaining
setPropagateModel(bPropagateModel): sap.ui.core.ComponentContainer
Sets a new value for property propagateModel.

Defines whether binding information is propagated to the component.

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

Default value is false.

Parameters:
{boolean}bPropagateModel New value for property propagateModel
Returns:
{sap.ui.core.ComponentContainer} Reference to this in order to allow method chaining
setSettings(oSettings): sap.ui.core.ComponentContainer
Sets a new value for property settings.

The settings object passed to the component when created. The property can only be applied initially.

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

Parameters:
{object}oSettings New value for property settings
Returns:
{sap.ui.core.ComponentContainer} Reference to this in order to allow method chaining
Sets a new value for property url.

The URL of the component. The property can only be applied initially.

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

Parameters:
{sap.ui.core.URI}sUrl New value for property url
Returns:
{sap.ui.core.ComponentContainer} Reference to this in order to allow method chaining
Sets a new value for property width.

Container width in CSS size

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

Parameters:
{sap.ui.core.CSSSize}sWidth New value for property width
Returns:
{sap.ui.core.ComponentContainer} Reference to this in order to allow method chaining