:: Documentation >> Reference >>

Active.System.Object

Generic base class - root of the ActiveUI class hierarchy.

Method Summary

cloneCreates an object clone.
handleHandles exceptions in the ActiveUI methods.
initInitializes the object.
timeoutCalls a method after a specified time interval has elapsed.
toStringConverts object to string.

Method Details

clone

Creates an object clone.

Syntax

object.clone();

Returns

A new object.

Remarks

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.

handle

Handles exceptions in the ActiveUI methods.

Syntax

object.handle(error);

Parameters

errorErrorError object.

Remarks

The default error handler just throws the same exception to the next level. Overload this function to add your own diagnostics and error logging.

init

Initializes the object.

Syntax

object.init();

Remarks

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.

timeout

Calls a method after a specified time interval has elapsed.

Syntax

object.timeout(handler, delay);

Parameters

handlerFunctionMethod to call.
delayNumberTime interval in milliseconds.

Returns

An identifier that can be used with window.clearTimeout to cancel the current method call.

Remarks

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.

toString

Converts object to string.

Syntax

object.toString();

Returns

Text or HTML representation of the object.

Remarks

This method is overloaded in ActiveUI subclasses.