sap.ui.commons.layout.BorderLayout.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.commons.layout.BorderLayout 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.BorderLayout.
Returns:
addContent(oAreaId, oControls): void
Adds controls to the specified area
Parameters:
Creates the specified area and adds the given controls to it. Returns the created area.
Parameters:
{sap.ui.commons.layout.BorderLayoutAreaTypes} | oAreaId | Specifies which area will be created. If the area is already available, the method call is ignored. |
{sap.ui.core.Control} | oControls | Any number of controls can be submitted to be added to the newly created area; where each control is submitted as one argument. |
Returns:
Destroys the begin in the aggregation begin
.
Returns:
Destroys the bottom in the aggregation bottom
.
Returns:
Destroys the center in the aggregation center
.
Returns:
destroyContent(oAreaId): void
Destroys the content of the specified area
Parameters:
Destroys the end in the aggregation end
.
Returns:
Destroys the top in the aggregation top
.
Returns:
Returns the area of the given type. If the area does not exist, it will be created when create is set to true.
Parameters:
Returns:
Returns the object of the specified area. If the area does not exist, the area will be created and returned.
Parameters:
Returns:
getAreaData(oAreaId): object
Returns a JSON-like object that contains all property values of the requested area
Parameters:
Returns:
Gets content of aggregation
begin
.
Represents the Begin area
Returns:
Gets content of aggregation
bottom
.
Represents the Bottom area
Returns:
Gets content of aggregation
center
.
Represents the Center area
Returns:
Returns all controls inside the specified area inside an array
Parameters:
Returns:
Gets content of aggregation
end
.
Represents the End area
Returns:
Gets current value of property
height
.
Defines the overall height of the layout
Default value is 100%
.
Returns:
Gets content of aggregation
top
.
Represents the Top area
Returns:
Gets current value of property
width
.
Defines the overall width of the layout
Default value is 100%
.
Returns:
indexOfContent(oAreaId, oContent): int
Determines the index of a given content control
Parameters:
Returns:
insertContent(oAreaId, iIndex, oControl): void
Inserts controls to an area at a given index.
Parameters:
{sap.ui.commons.layout.BorderLayoutAreaTypes} | oAreaId | Specifies the area where the controls shall be inserted. |
{int} | iIndex | Specifies the index where the controls shall be added. 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. |
{sap.ui.core.Control} | oControl | N controls can be submitted to be added. Each control is submitted as one argument. |
removeAllContent(oAreaId): void
Removes all content from an area
Parameters:
removeContent(oAreaId, iIndex): void
Removes the content with the given index from an area
Parameters:
setAreaData(oAreaId, oData): void
Sets the properties of the specified area with the given values
Parameters:
Sets the aggregated begin
.
Parameters:
Returns:
Sets the aggregated bottom
.
Parameters:
Returns:
Sets the aggregated center
.
Parameters:
Returns:
Sets the aggregated end
.
Parameters:
Returns:
Sets a new value for property
height
.
Defines the overall height of the layout
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 the aggregated top
.
Parameters:
Returns:
Sets a new value for property
width
.
Defines the overall width of the layout
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 100%
.
Parameters:
Returns:
getRtl(): boolean
Gets current value of property
rtl
.
The RTL setting swaps the areas Begin and End. Since version 1.5.2, this property is deprecated and ignored as it conflicts with the central configuration for the page.
Default value is false
.
- Deprecated:
- Since version 1.5.2. RTL should not be configured on control level but is determined by a global configuration.
Returns:
{boolean} | Value of property rtl |
Sets a new value for property
rtl
.
The RTL setting swaps the areas Begin and End. Since version 1.5.2, this property is deprecated and ignored as it conflicts with the central configuration for the page.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bRtl | New value for property rtl |
- Deprecated:
- Since version 1.5.2. RTL should not be configured on control level but is determined by a global configuration.
Returns: