sap.ui.commons.layout.AbsoluteLayout.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.commons.layout.AbsoluteLayout 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 |
Returns a metadata object for class sap.ui.commons.layout.AbsoluteLayout.
Returns:
Adds the given control and a corresponding position container into the aggregation named 'positions'. Returns 'this' to allow method chaining.
Parameters:
{sap.ui.core.Control} | oContent | The content to add; if empty, nothing is inserted. |
{object} | oPos | JSON-like object which defines the position of the child control in the layout. The object is expected to have one or more from the attribute set top, bottom, left, right; each with a value of type sap.ui.core.CSSSize. If no object is given, the default is left=0px,right=0px |
Returns:
Adds some position to the aggregation positions
.
Parameters:
Returns:
Destroys all aggregated position containers and their child controls. Returns 'this' to allow method chaining.
Returns:
Destroys all the positions in the aggregation positions
.
Returns:
Returns an array of the controls contained in the aggregated position containers (might be empty).
Returns:
Gets current value of property
height
.
The overall height of the control. When not set, 100% is automatically set.
Default value is 100%
.
Returns:
Gets current value of property
horizontalScrolling
.
'Auto', 'Scroll', 'Hidden', and 'None' are the available values for setting the vertical scrolling mode.
Default value is Hidden
.
Returns:
Gets content of aggregation
positions
.
Positioned child controls within the layout
Returns:
Gets current value of property
verticalScrolling
.
'Auto', 'Scroll', 'Hidden', and 'None' are the available values for setting the vertical scrolling mode.
Default value is Hidden
.
Returns:
Gets current value of property
width
.
The overall width of the control. When not set, 100% is automatically set.
Default value is 100%
.
Returns:
indexOfContent(oContent): int
Checks for the provided sap.ui.core.Control in the aggregated position containers, and returns the index of the container in the positions aggregation if found, or '-1' otherwise.
Parameters:
Returns:
indexOfPosition(oPosition): int
Checks for the provided sap.ui.commons.layout.PositionContainer
in the aggregation positions
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts the given control and a corresponding position container into the aggregation named 'positions'. Returns 'this' to allow method chaining.
Parameters:
{sap.ui.core.Control} | oContent | The content to insert; if empty, nothing is inserted |
{int} | iIndex | The '0'-based index where the content shall be inserted at. For a negative value of iIndex, the content is inserted at position '0'; for a value greater than the current size of the aggregation, the content is inserted at the last position. |
{object} | oPos | JSON-like object which defines the position of the child control within the layout. The object is expected to have one or more from the attribute set top, bottom, left, right; each with a value of type sap.ui.core.CSSSize. If no object is given, the default is left=0px,right=0px. |
Returns:
Inserts a position into the aggregation positions
.
Parameters:
{sap.ui.commons.layout.PositionContainer} | oPosition | the position to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the position should be inserted at; for a negative value of iIndex , the position is inserted at position 0; for a value greater than the current size of the aggregation, the position is inserted at the last position |
Returns:
Removes all aggregated position containers. Returns an array of the controls contained in the removed position containers (might be empty).
Returns:
Removes all the controls from the aggregation
positions
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes the given control and its corresponding position container from the aggregation named 'positions'.
Parameters:
{object} | oContent | The content control to remove, its ID, or the index of the corresponding position container in the 'positions' aggregation. |
Returns:
Removes a position from the aggregation positions
.
Parameters:
Returns:
Sets a new value for property
height
.
The overall height of the control. When not set, 100% is automatically set.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 100%
.
Parameters:
Returns:
Sets a new value for property
horizontalScrolling
.
'Auto', 'Scroll', 'Hidden', and 'None' are the available values for setting the vertical scrolling mode.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Hidden
.
Parameters:
Returns:
setPositionOfChild(oControl, oPos): boolean
Allows to set or change the position information of the given child control
Parameters:
{sap.ui.core.Control} | oControl | The child control for which to change the position information; if empty or not aggregated, nothing is changed |
{object} | oPos | JSON-like object which defines the position of the child control. The object is expected to have one or more from the attribute set top, bottom, left, right; each with a value of type sap.ui.core.CSSSize. If no object is given, the default is used which is left=0px,right=0px. |
Returns:
Sets a new value for property
verticalScrolling
.
'Auto', 'Scroll', 'Hidden', and 'None' are the available values for setting the vertical scrolling mode.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Hidden
.
Parameters:
Returns:
Sets a new value for property
width
.
The overall width of the control. When not set, 100% is automatically set.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 100%
.
Parameters:
Returns: