IFreezable

Interface for an object with a state change event that can be disabled. Object that implements IFreezable it can function in one of the following modes:

Constructor | Fields | Events | Methods

Constructor

IFreezable()

Fields

Name Type Description
events IEventManager

Event manager for the object.

Events

Name Description
change

Change to the internal state of the object.

Methods

Name Returns Description
freeze()

IFreezable

Switches the object to "frozen" mode.

isFrozen()

Boolean

Returns true if the object is in "frozen" mode, otherwise false.

unfreeze()

IFreezable

Switches the object to active mode.

Fields details

events

{IEventManager} events

Event manager for the object.

Events details

change

Change to the internal state of the object.

Methods details

freeze

{IFreezable} freeze()

Switches the object to "frozen" mode.

Returns self-reference.

isFrozen

{Boolean} isFrozen()

Returns true if the object is in "frozen" mode, otherwise false.

unfreeze

{IFreezable} unfreeze()

Switches the object to active mode.

Returns self-reference.