sap.m.semantic.SemanticPage.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.semantic.SemanticPage 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.m.semantic.SemanticPage.
Returns:
Adds some content to the aggregation content.
Parameters:
Returns:
Adds some customFooterContent to the aggregation customFooterContent.
Parameters:
| {sap.m.Button} | oCustomFooterContent | the customFooterContent to add; if empty, nothing is inserted |
Returns:
Adds some customHeaderContent to the aggregation customHeaderContent.
Parameters:
| {sap.m.Button} | oCustomHeaderContent | the customHeaderContent to add; if empty, nothing is inserted |
Returns:
Attaches event handler
fnFunction to the
navButtonPress event of this
sap.m.semantic.SemanticPage.
When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.m.semantic.SemanticPage itself.
See sap.m.Page#navButtonPress
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 be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.m.semantic.SemanticPage itself |
Returns:
Destroys all the content in the aggregation content.
Returns:
Destroys all the customFooterContent in the aggregation customFooterContent.
Returns:
Destroys all the customHeaderContent in the aggregation customHeaderContent.
Returns:
Destroys the landmarkInfo in the aggregation landmarkInfo.
Returns:
Destroys the subHeader in the aggregation subHeader.
Returns:
Detaches event handler
fnFunction from the
navButtonPress event of this
sap.m.semantic.SemanticPage.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
Returns:
Fires event navButtonPress to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
Gets content of aggregation
content.
See sap.m.Page#content
Returns:
Gets content of aggregation
customFooterContent.
Custom footer buttons
Returns:
Gets content of aggregation
customHeaderContent.
Custom header buttons
Returns:
getEnableScrolling(): boolean
Gets current value of property
enableScrolling.
See sap.m.Page#enableScrolling
Default value is true.
Returns:
| {boolean} | Value of property enableScrolling |
Gets content of aggregation
landmarkInfo.
Accessible landmark settings to be applied to the containers of the sap.m.Page control.
If not set, no landmarks will be written.
Returns:
getShowFooter(): boolean
Gets current value of property
showFooter.
Hides or shows the page footer
Default value is true.
Returns:
| {boolean} | Value of property showFooter |
getShowNavButton(): boolean
Gets current value of property
showNavButton.
See sap.m.Page#showNavButton
Default value is false.
Returns:
| {boolean} | Value of property showNavButton |
getShowSubHeader(): boolean
Gets current value of property
showSubHeader.
See sap.m.Page#showSubHeader
Default value is true.
Returns:
| {boolean} | Value of property showSubHeader |
Gets content of aggregation
subHeader.
See sap.m.Page#subHeader
Returns:
getTitle(): string
Gets current value of property
title.
See sap.m.Page#title
Returns:
| {string} | Value of property title |
Gets current value of property
titleLevel.
See sap.m.Page#titleLevel
Default value is Auto.
Returns:
indexOfContent(oContent): int
Checks for the provided sap.ui.core.Control in the aggregation content. 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 |
indexOfCustomFooterContent(oCustomFooterContent): int
Checks for the provided sap.m.Button in the aggregation customFooterContent. and returns its index if found or -1 otherwise.
Parameters:
| {sap.m.Button} | oCustomFooterContent | The customFooterContent whose index is looked for |
Returns:
| {int} | The index of the provided control in the aggregation if found, or -1 otherwise |
indexOfCustomHeaderContent(oCustomHeaderContent): int
Checks for the provided sap.m.Button in the aggregation customHeaderContent. and returns its index if found or -1 otherwise.
Parameters:
| {sap.m.Button} | oCustomHeaderContent | The customHeaderContent whose index is looked for |
Returns:
| {int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a content into the aggregation content.
Parameters:
| {sap.ui.core.Control} | oContent | the content to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the content should 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 |
Returns:
Inserts a customFooterContent into the aggregation customFooterContent.
Parameters:
| {sap.m.Button} | oCustomFooterContent | the customFooterContent to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the customFooterContent should be inserted at; for a negative value of iIndex, the customFooterContent is inserted at position 0; for a value greater than the current size of the aggregation, the customFooterContent is inserted at the last position |
Returns:
Inserts a customHeaderContent into the aggregation customHeaderContent.
Parameters:
| {sap.m.Button} | oCustomHeaderContent | the customHeaderContent to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the customHeaderContent should be inserted at; for a negative value of iIndex, the customHeaderContent is inserted at position 0; for a value greater than the current size of the aggregation, the customHeaderContent is inserted at the last position |
Returns:
Removes all the controls from the aggregation
content.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
customFooterContent.
Additionally, it unregisters them from the hosting UIArea.
Returns:
| {sap.m.Button[]} | An array of the removed elements (might be empty) |
Removes all the controls from the aggregation
customHeaderContent.
Additionally, it unregisters them from the hosting UIArea.
Returns:
| {sap.m.Button[]} | An array of the removed elements (might be empty) |
Removes a content from the aggregation content.
Parameters:
Returns:
removeCustomFooterContent
(vCustomFooterContent): sap.m.Button Removes a customFooterContent from the aggregation customFooterContent.
Parameters:
| {int|string|sap.m.Button} | vCustomFooterContent | The customFooterContentto remove or its index or id |
Returns:
removeCustomHeaderContent
(vCustomHeaderContent): sap.m.Button Removes a customHeaderContent from the aggregation customHeaderContent.
Parameters:
| {int|string|sap.m.Button} | vCustomHeaderContent | The customHeaderContentto remove or its index or id |
Returns:
Sets a new value for property
enableScrolling.
See sap.m.Page#enableScrolling
When called with a value of null or undefined, the default value of the property will be restored.
Default value is true.
Parameters:
| {boolean} | bEnableScrolling | New value for property enableScrolling |
Returns:
Sets the aggregated landmarkInfo.
Parameters:
Returns:
Sets a new value for property
showFooter.
Hides or shows the page footer
When called with a value of null or undefined, the default value of the property will be restored.
Default value is true.
Parameters:
| {boolean} | bShowFooter | New value for property showFooter |
Returns:
Sets a new value for property
showNavButton.
See sap.m.Page#showNavButton
When called with a value of null or undefined, the default value of the property will be restored.
Default value is false.
Parameters:
| {boolean} | bShowNavButton | New value for property showNavButton |
Returns:
Sets a new value for property
showSubHeader.
See sap.m.Page#showSubHeader
When called with a value of null or undefined, the default value of the property will be restored.
Default value is true.
Parameters:
| {boolean} | bShowSubHeader | New value for property showSubHeader |
Returns:
Sets the aggregated subHeader.
Parameters:
Returns:
Sets a new value for property
title.
See sap.m.Page#title
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
| {string} | sTitle | New value for property title |
Returns:
Sets a new value for property
titleLevel.
See sap.m.Page#titleLevel
When called with a value of null or undefined, the default value of the property will be restored.
Default value is Auto.
Parameters:
Returns: