sap.ui.unified.Shell.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.unified.Shell 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.unified.ShellLayout.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.unified.Shell.
Returns:
Adds some curtainContent to the aggregation curtainContent
.
Parameters:
Returns:
Adds some curtainPaneContent to the aggregation curtainPaneContent
.
Parameters:
{sap.ui.core.Control} | oCurtainPaneContent | the curtainPaneContent to add; if empty, nothing is inserted |
Returns:
Adds some headEndItem to the aggregation headEndItems
.
Parameters:
Returns:
Adds some headItem to the aggregation headItems
.
Parameters:
Returns:
Destroys all the curtainContent in the aggregation curtainContent
.
Returns:
Destroys all the curtainPaneContent in the aggregation curtainPaneContent
.
Returns:
Destroys all the headEndItems in the aggregation headEndItems
.
Returns:
Destroys the header in the aggregation named header
, but only if a custom header is set. The default header can not be destroyed.
Returns:
Destroys all the headItems in the aggregation headItems
.
Returns:
Destroys the search in the aggregation search
.
Returns:
Destroys the user in the aggregation user
.
- Since:
- 1.22.0
Returns:
Gets content of aggregation
curtainContent
.
The content to appear in the curtain area.
Returns:
Gets content of aggregation
curtainPaneContent
.
The content to appear in the pane area of the curtain.
Returns:
Gets content of aggregation
headEndItems
.
The buttons shown in the end (right in left-to-right case) of the Shell header. Currently max. 3 visible buttons are supported (when user is set only 1). If a custom header is set this aggregation has no effect.
Returns:
Gets content of aggregation
headItems
.
The buttons shown in the begin (left in left-to-right case) of the Shell header. Currently max. 3 visible buttons are supported. If a custom header is set this aggregation has no effect.
Returns:
Gets current value of property
icon
.
The application icon. If a custom header is set this property has no effect.
Returns:
Gets content of aggregation
search
.
Experimental (This aggregation might change in future!): The search control which should be displayed in the shell header. If a custom header is set this aggregation has no effect.
Returns:
getSearchVisible(): boolean
Gets current value of property
searchVisible
.
If set to false, the search area (aggregation 'search') is hidden. If a custom header is set this property has no effect.
Default value is true
.
- Since:
- 1.18
Returns:
{boolean} | Value of property searchVisible |
Gets content of aggregation
user
.
The user item which is rendered in the shell header beside the items. If a custom header is set this aggregation has no effect.
- Since:
- 1.22.0
Returns:
indexOfCurtainContent(oCurtainContent): int
Checks for the provided sap.ui.core.Control
in the aggregation curtainContent
. 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 |
indexOfCurtainPaneContent(oCurtainPaneContent): int
Checks for the provided sap.ui.core.Control
in the aggregation curtainPaneContent
. 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 |
indexOfHeadEndItem(oHeadEndItem): int
Checks for the provided sap.ui.unified.ShellHeadItem
in the aggregation headEndItems
. 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 |
indexOfHeadItem(oHeadItem): int
Checks for the provided sap.ui.unified.ShellHeadItem
in the aggregation headItems
. 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 a curtainContent into the aggregation curtainContent
.
Parameters:
{sap.ui.core.Control} | oCurtainContent | the curtainContent to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the curtainContent should be inserted at; for a negative value of iIndex , the curtainContent is inserted at position 0; for a value greater than the current size of the aggregation, the curtainContent is inserted at the last position |
Returns:
Inserts a curtainPaneContent into the aggregation curtainPaneContent
.
Parameters:
{sap.ui.core.Control} | oCurtainPaneContent | the curtainPaneContent to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the curtainPaneContent should be inserted at; for a negative value of iIndex , the curtainPaneContent is inserted at position 0; for a value greater than the current size of the aggregation, the curtainPaneContent is inserted at the last position |
Returns:
Inserts a headEndItem into the aggregation headEndItems
.
Parameters:
{sap.ui.unified.ShellHeadItem} | oHeadEndItem | the headEndItem to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the headEndItem should be inserted at; for a negative value of iIndex , the headEndItem is inserted at position 0; for a value greater than the current size of the aggregation, the headEndItem is inserted at the last position |
Returns:
Inserts a headItem into the aggregation headItems
.
Parameters:
{sap.ui.unified.ShellHeadItem} | oHeadItem | the headItem to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the headItem should be inserted at; for a negative value of iIndex , the headItem is inserted at position 0; for a value greater than the current size of the aggregation, the headItem is inserted at the last position |
Returns:
Removes all the controls from the aggregation
curtainContent
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
curtainPaneContent
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
headEndItems
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
headItems
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a curtainContent from the aggregation curtainContent
.
Parameters:
Returns:
Removes a curtainPaneContent from the aggregation curtainPaneContent
.
Parameters:
{int|string|sap.ui.core.Control} | vCurtainPaneContent | The curtainPaneContentto remove or its index or id |
Returns:
Removes a headEndItem from the aggregation headEndItems
.
Parameters:
Returns:
Removes a headItem from the aggregation headItems
.
Parameters:
Returns:
Setter for the aggregated header
.
Parameters:
{sap.ui.core.Control} | oHeader | The Control which should be rendered within the Shell header or null to render the default Shell header. |
Returns:
Sets a new value for property
icon
.
The application icon. If a custom header is set this property has no effect.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
Returns:
Sets the aggregated search
.
Parameters:
Returns:
Sets a new value for property
searchVisible
.
If set to false, the search area (aggregation 'search') is hidden. If a custom header is set this property has no effect.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bSearchVisible | New value for property searchVisible |
- Since:
- 1.18
Returns:
Sets the aggregated user
.
Parameters:
- Since:
- 1.22.0
Returns:
getShowCurtain(): boolean
Gets current value of property
showCurtain
.
Shows / Hides the curtain.
- Deprecated:
- Since version 1.16.3. Curtain is deprecated and replaced by ShellOverlay mechanism.
Returns:
{boolean} | Value of property showCurtain |
getShowCurtainPane(): boolean
Gets current value of property
showCurtainPane
.
Shows / Hides the side pane on the curtain.
- Deprecated:
- Since version 1.16.3. Curtain is deprecated and replaced by ShellOverlay mechanism.
Returns:
{boolean} | Value of property showCurtainPane |
Sets a new value for property
showCurtain
.
Shows / Hides the curtain.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{boolean} | bShowCurtain | New value for property showCurtain |
- Deprecated:
- Since version 1.16.3. Curtain is deprecated and replaced by ShellOverlay mechanism.
Returns:
Sets a new value for property
showCurtainPane
.
Shows / Hides the side pane on the curtain.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{boolean} | bShowCurtainPane | New value for property showCurtainPane |
- Deprecated:
- Since version 1.16.3. Curtain is deprecated and replaced by ShellOverlay mechanism.
Returns: