Generic base class - root of the ActiveUI class hierarchy.
clone | Creates an object clone. |
handle | Handles exceptions in the ActiveUI methods. |
init | Initializes the object. |
timeout | Calls a method after a specified time interval has elapsed. |
toString | Converts object to string. |
Creates an object clone.
object.clone();
A new object.
The clone function creates a fast copy of the object. Instead of physically copying each property and method of the source object - it creates a clone as a ‘subclass’ of the source object, i.e. properties and methods are inherited from the source object into the clone.
Note that the clone continues to be dependent on the source object. Changes in the source object property or method will affect all the clones unless this property is already overwritten in the clone object itself.
Handles exceptions in the ActiveUI methods.
object.handle(error);
error | Error | Error object. |
The default error handler just throws the same exception to the next level. Overload this function to add your own diagnostics and error logging.
Initializes the object.
object.init();
This method normaly contains all object initialization code (instead of the constructor function). Constructor function is the same for all objects and only contains object.init() call.
Calls a method after a specified time interval has elapsed.
object.timeout(handler, delay);
handler | Function | Method to call. |
delay | Number | Time interval in milliseconds. |
An identifier that can be used with window.clearTimeout to cancel the current method call.
This method has the same effect as window.setTimeout except that the function will be evaluated not as a global function but as a method of the current object.
Converts object to string.
object.toString();
Text or HTML representation of the object.
This method is overloaded in ActiveUI subclasses.