Class R.lang.OneShotTimeout
Extends
R.lang.Timeout.
An extension of R.lang.Timeout which is a one-shot timer that cannot
be restarted and will self-destroy after it completes its interval. Within
the callback, this refers to the Timer object itself.
Defined in: oneshottimeout.js.
Constructor Attributes | Constructor Name and Description |
---|---|
R.lang.OneShotTimeout(name, interval, callback)
Create a one-shot timeout
|
Method Attributes | Method Name and Description |
---|---|
Get the class name of this object
|
- Methods borrowed from class R.lang.Timeout:
- cancel, destroy, restart
- Methods borrowed from class R.lang.AbstractTimer:
- getCallback, getInterval, getTimer, isRunning, pause, release, setCallback, setInterval, setTimer
- Methods borrowed from class R.engine.BaseObject:
- addEvent, addEvents, getElement, jQ, removeEvent, setElement, triggerEvent, update
- Methods borrowed from class R.engine.PooledObject:
- clearObjectDataModel, getId, getName, getObjectDataModel, getProperties, isDestroyed, setName, setObjectDataModel, toString, toXML
Class Detail
R.lang.OneShotTimeout(name, interval, callback)
Create a one-shot timeout
- Parameters:
- name
- {String} The name of the timer
- interval
- {Number} The interval for the timer, in milliseconds
- callback
- {Function} The function to call when the interval is reached
Method Detail
{String}
getClassName()
Get the class name of this object
- Returns:
- {String} "R.lang.OneShotTimeout"