Provides a trigger that triggers in a set interval and calls all registered listeners. If the interval is <= 0 the trigger is switched off and won't trigger at all.
Method | Description |
---|---|
addListener |
Adds a listener to the list that should be triggered. |
sap.ui.core.IntervalTrigger.addListener |
Adds a listener to the list that should be triggered. |
destroy |
Destructor method for objects. |
sap.ui.core.IntervalTrigger.extend |
Creates a new subclass of class sap.ui.core.IntervalTrigger with name
|
sap.ui.core.IntervalTrigger.getMetadata |
Returns a metadata object for class sap.ui.core.IntervalTrigger. |
removeListener |
Removes corresponding listener from list. |
sap.ui.core.IntervalTrigger.removeListener |
Removes corresponding listener from list. |
setInterval |
Sets the trigger interval. If the value is >0 triggering will start if there are any registered listeners. If the interval is set to <=0 triggering will stop. |
Adds a listener to the list that should be triggered.
Param | Type | DefaultValue | Description |
---|---|---|---|
fnFunction | function |
is the called function that should be called when the trigger want to trigger the listener. |
|
oListener | object |
that should be triggered. |
Adds a listener to the list that should be triggered.
Param | Type | DefaultValue | Description |
---|---|---|---|
fnFunction | function |
is the called function that should be called when the trigger want to trigger the listener. |
|
oListener | object |
that should be triggered. |
Creates a new subclass of class sap.ui.core.IntervalTrigger 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.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |
Returns a metadata object for class sap.ui.core.IntervalTrigger.
Removes corresponding listener from list.
Param | Type | DefaultValue | Description |
---|---|---|---|
fnFunction | function |
is the previously registered function |
|
oListener | object |
that should be removed |