Class sap.ui.base.EventModule: sap/ui/base/Event
An Event object consisting of an id, a source and a map of parameters
Constructor Summary
new sap.ui.base.Event(sId, oSource, mParameters)Creates an event with the given
sId
, linked to the provided oSource
and enriched with the mParameters
.Method Summary
sap.ui.base.Event.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.base.Event with name
sClassName
and enriches it with the information contained in oClassInfo
.Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ui.base.Event(sId, oSource, mParameters)
Creates an event with the given
sId
, linked to the provided oSource
and enriched with the mParameters
. Parameters:
{string} | sId | The id of the event |
{sap.ui.base.EventProvider} | oSource | The source of the event |
{object} | mParameters | A map of parameters for this event |
Method Detail
sap.ui.base.Event.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.base.Event 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.base.Object.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 |
sap.ui.base.Event.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.base.Event.
Returns:
{sap.ui.base.Metadata} | Metadata object describing this class |
cancelBubble()
Cancel bubbling of the event.
Note: This function only has an effect if the bubbling of the event is supported by the event source.
getParameter(sName): any
Returns the value of the parameter with the given sName.
Parameters:
{string} | sName | The name of the parameter to return |
Returns:
{any} | The value for the named parameter |
getParameters(): map
Returns all parameter values of the event keyed by their names.
Returns:
{map} | All parameters of the event keyed by name |
getSource(): sap.ui.base.EventProvider
Returns the event provider on which the event was fired.
Returns:
{sap.ui.base.EventProvider} | The source of the event |