sap.m.MessagePopover.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.MessagePopover 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.MessagePopover.
Returns:
sap.m.MessagePopover.setDefaultHandlers(mDefaultHandlers)
Setter for default description and URL validation callbacks across all instances of MessagePopover
Parameters:
{object} | mDefaultHandlers | An object setting default callbacks |
{function} | mDefaultHandlers.asyncDescriptionHandler | |
{function} | mDefaultHandlers.asyncURLHandler | |
Adds some item to the aggregation items
.
Parameters:
Returns:
Attaches event handler
fnFunction
to the
afterClose
event of this
sap.m.MessagePopover
.
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.MessagePopover
itself.
This event will be fired after the popover 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.MessagePopover itself |
Returns:
Attaches event handler
fnFunction
to the
afterOpen
event of this
sap.m.MessagePopover
.
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.MessagePopover
itself.
This event will be fired after the popover is opened
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.MessagePopover itself |
Returns:
Attaches event handler
fnFunction
to the
beforeClose
event of this
sap.m.MessagePopover
.
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.MessagePopover
itself.
This event will be fired before the popover 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.MessagePopover itself |
Returns:
Attaches event handler
fnFunction
to the
beforeOpen
event of this
sap.m.MessagePopover
.
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.MessagePopover
itself.
This event will be fired before the popover is opened
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.MessagePopover itself |
Returns:
Attaches event handler
fnFunction
to the
itemSelect
event of this
sap.m.MessagePopover
.
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.MessagePopover
itself.
This event will be fired when description is shown
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.MessagePopover itself |
Returns:
Attaches event handler
fnFunction
to the
listSelect
event of this
sap.m.MessagePopover
.
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.MessagePopover
itself.
This event will be fired when one of the lists is shown when (not) filtered by type
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.MessagePopover itself |
Returns:
Attaches event handler
fnFunction
to the
longtextLoaded
event of this
sap.m.MessagePopover
.
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.MessagePopover
itself.
This event will be fired when the long text description data from a remote URL is loaded
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.MessagePopover itself |
Returns:
Attaches event handler
fnFunction
to the
urlValidated
event of this
sap.m.MessagePopover
.
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.MessagePopover
itself.
This event will be fired when a validation of a URL from long text description is ready
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.MessagePopover itself |
Returns:
Closes the MessagePopover
Returns:
Destroys the headerButton in the aggregation headerButton
.
Returns:
Destroys all the items in the aggregation items
.
Returns:
Detaches event handler
fnFunction
from the
afterClose
event of this
sap.m.MessagePopover
.
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:
Detaches event handler
fnFunction
from the
afterOpen
event of this
sap.m.MessagePopover
.
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:
Detaches event handler
fnFunction
from the
beforeClose
event of this
sap.m.MessagePopover
.
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:
Detaches event handler
fnFunction
from the
beforeOpen
event of this
sap.m.MessagePopover
.
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:
Detaches event handler
fnFunction
from the
itemSelect
event of this
sap.m.MessagePopover
.
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:
Detaches event handler
fnFunction
from the
listSelect
event of this
sap.m.MessagePopover
.
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:
Detaches event handler
fnFunction
from the
longtextLoaded
event of this
sap.m.MessagePopover
.
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:
Detaches event handler
fnFunction
from the
urlValidated
event of this
sap.m.MessagePopover
.
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
afterClose
to attached listeners.
Expects the following event parameters:
openBy
of type sap.ui.core.Control
Refers to the control which opens the popover
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
afterOpen
to attached listeners.
Expects the following event parameters:
openBy
of type sap.ui.core.Control
This refers to the control which opens the popover
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
beforeClose
to attached listeners.
Expects the following event parameters:
openBy
of type sap.ui.core.Control
Refers to the control which opens the popover See sap.ui.core.MessageType enum values for types
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
beforeOpen
to attached listeners.
Expects the following event parameters:
openBy
of type sap.ui.core.Control
Refers to the control which opens the popover
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
itemSelect
to attached listeners.
Expects the following event parameters:
item
of type sap.m.MessagePopoverItem
Refers to the message popover item that is being presentedmessageTypeFilter
of type sap.ui.core.MessageType
Refers to the type of messages being shown See sap.ui.core.MessageType values for types
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
listSelect
to attached listeners.
Expects the following event parameters:
messageTypeFilter
of type sap.ui.core.MessageType
This parameter refers to the type of messages being shown.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event longtextLoaded
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event urlValidated
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
getAsyncDescriptionHandler(): any
Gets current value of property
asyncDescriptionHandler
.
Callback function for resolving a promise after description has been asynchronously loaded inside this function
Returns:
{any} | Value of property asyncDescriptionHandler |
getAsyncURLHandler(): any
Gets current value of property
asyncURLHandler
.
Callback function for resolving a promise after a link has been asynchronously validated inside this function
Returns:
{any} | Value of property asyncURLHandler |
Gets content of aggregation
headerButton
.
A custom header button
Returns:
getInitiallyExpanded(): boolean
Gets current value of property
initiallyExpanded
.
Sets the initial state of the control - expanded or collapsed. By default the control opens as expanded
Default value is true
.
Returns:
{boolean} | Value of property initiallyExpanded |
Gets content of aggregation
items
.
A list with message items
Returns:
Gets current value of property
placement
.
Determines the position, where the control will appear on the screen. Possible values are: sap.m.VerticalPlacementType.Top, sap.m.VerticalPlacementType.Bottom and sap.m.VerticalPlacementType.Vertical. The default value is sap.m.VerticalPlacementType.Vertical. Setting this property while the control is open, will not cause any re-rendering and changing of the position. Changes will only be applied with the next interaction.
Default value is Vertical
.
Returns:
indexOfItem(oItem): int
Checks for the provided sap.m.MessagePopoverItem
in the aggregation items
. 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 item into the aggregation items
.
Parameters:
{sap.m.MessagePopoverItem} | oItem | the item to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the item should be inserted at; for a negative value of iIndex , the item is inserted at position 0; for a value greater than the current size of the aggregation, the item is inserted at the last position |
Returns:
isOpen(): boolean
The method checks if the MessagePopover is open. It returns true when the MessagePopover is currently open (this includes opening and closing animations), otherwise it returns false
Returns:
{boolean} | Whether the MessagePopover is open |
Opens the MessagePopover
Parameters:
Returns:
Removes all the controls from the aggregation
items
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a item from the aggregation items
.
Parameters:
Returns:
Sets a new value for property
asyncDescriptionHandler
.
Callback function for resolving a promise after description has been asynchronously loaded inside this function
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{any} | oAsyncDescriptionHandler | New value for property asyncDescriptionHandler |
Returns:
Sets a new value for property
asyncURLHandler
.
Callback function for resolving a promise after a link has been asynchronously validated inside this function
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{any} | oAsyncURLHandler | New value for property asyncURLHandler |
Returns:
Sets the aggregated headerButton
.
Parameters:
Returns:
Sets a new value for property
initiallyExpanded
.
Sets the initial state of the control - expanded or collapsed. By default the control opens as expanded
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bInitiallyExpanded | New value for property initiallyExpanded |
Returns:
This method toggles between open and closed state of the MessagePopover instance. oControl parameter is mandatory in the same way as in 'openBy' method
Parameters:
Returns: