sap.m.NotificationListBase.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.NotificationListBase with name
sClassName and enriches it with the information contained in
oClassInfo.
oClassInfo might contain the same kind of information as described in sap.m.ListItemBase.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.NotificationListBase.
Returns:
Returns the sap.m.Image or the sap.ui.core.Control used in the NotificationListBase's author picture.
Returns:
Returns the sap.m.Text control used in the NotificationListBase's author name.
Returns:
Returns the sap.m.Text control used in the NotificationListBase's header title.
Returns:
| {sap.m.Text} | The datetime control inside the Notification List Base control |
Returns the sap.m.Text control used in the NotificationListBase's header title.
Returns:
| {sap.m.Text} | The title control inside the Notification List Base control |
Returns the sap.m.OverflowToolbar control used in the NotificationListBase.
Returns:
Adds some button to the aggregation buttons.
Parameters:
| {sap.m.Button} | oButton | the button to add; if empty, nothing is inserted |
Returns:
Attaches event handler
fnFunction to the
close event of this
sap.m.NotificationListBase.
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.NotificationListBase itself.
Fired when the notification is closed.
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.NotificationListBase itself |
Returns:
Destroys all the buttons in the aggregation buttons.
Returns:
Detaches event handler
fnFunction from the
close event of this
sap.m.NotificationListBase.
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 close to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
getAuthorName(): string
Gets current value of property
authorName.
Determines the notification group's author name.
Default value is .
Returns:
| {string} | Value of property authorName |
Gets current value of property
authorPicture.
Determines the URL of the notification group's author picture.
Returns:
Gets content of aggregation
buttons.
Action buttons.
Returns:
getDatetime(): string
Gets current value of property
datetime.
Determines the due date of the NotificationListItem.
Default value is .
Returns:
| {string} | Value of property datetime |
Gets current value of property
priority.
Determines the priority of the Notification.
Default value is None.
Returns:
getShowButtons(): boolean
Gets current value of property
showButtons.
Determines the action buttons visibility.
Default value is true.
Returns:
| {boolean} | Value of property showButtons |
getShowCloseButton(): boolean
Gets current value of property
showCloseButton.
Determines the visibility of the close button.
Default value is true.
Returns:
| {boolean} | Value of property showCloseButton |
getTitle(): string
Gets current value of property
title.
Determines the title of the NotificationListBase item.
Default value is .
Returns:
| {string} | Value of property title |
indexOfButton(oButton): int
Checks for the provided sap.m.Button in the aggregation buttons. 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 button into the aggregation buttons.
Parameters:
| {sap.m.Button} | oButton | the button to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the button should be inserted at; for a negative value of iIndex, the button is inserted at position 0; for a value greater than the current size of the aggregation, the button is inserted at the last position |
Returns:
Removes all the controls from the aggregation
buttons.
Additionally, it unregisters them from the hosting UIArea.
Returns:
| {sap.m.Button[]} | An array of the removed elements (might be empty) |
Removes a button from the aggregation buttons.
Parameters:
| {int|string|sap.m.Button} | vButton | The buttonto remove or its index or id |
Returns:
Sets a new value for property
authorName.
Determines the notification group's author name.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is .
Parameters:
| {string} | sAuthorName | New value for property authorName |
Returns:
Sets a new value for property
authorPicture.
Determines the URL of the notification group's author picture.
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
Returns:
Sets a new value for property
datetime.
Determines the due date of the NotificationListItem.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is .
Parameters:
| {string} | sDatetime | New value for property datetime |
Returns:
Sets a new value for property
priority.
Determines the priority of the Notification.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is None.
Parameters:
Returns:
Sets a new value for property
showButtons.
Determines the action buttons visibility.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is true.
Parameters:
| {boolean} | bShowButtons | New value for property showButtons |
Returns:
Sets a new value for property
showCloseButton.
Determines the visibility of the close button.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is true.
Parameters:
| {boolean} | bShowCloseButton | New value for property showCloseButton |
Returns:
Sets a new value for property
title.
Determines the title of the NotificationListBase item.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is .
Parameters:
| {string} | sTitle | New value for property title |
Returns: