Class Index | File Index

Classes


Class VENISON.PROPERTY.PropertyFactory

A factory singleton to handle properties.
Defined in: venison_engine.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
fnCreateProperty(iPropertyName, iPropertyAttributes)
Create a certain property, optionally with certain attributes.
 
Get an array with the names of all properties currently registered in the property factory.
 
fnRegisterProperty(iPropertyname, iProperty)
Register a property constructor with the Property Factory, in order to be able to create it via VENISON.PROPERTY.PropertyFactory#fnCreateProperty.
Class Detail
VENISON.PROPERTY.PropertyFactory()
Method Detail
{Object} fnCreateProperty(iPropertyName, iPropertyAttributes)
Create a certain property, optionally with certain attributes.
Parameters:
{String} iPropertyName
The name of the property to create, as previously registered with VENISON.PROPERTY.PropertyFactory#fnRegisterProperty.
{Object} iPropertyAttributes
[optional] The attributes object to assign to the newly created property, that can be really anything. If left empty, the property will have its self-declared default attributes.
Returns:
{Object} The created property.

fnGetPropertyNames()
Get an array with the names of all properties currently registered in the property factory.
Returns:
An array with the names of all properties currently registered in the property factory.

fnRegisterProperty(iPropertyname, iProperty)
Register a property constructor with the Property Factory, in order to be able to create it via VENISON.PROPERTY.PropertyFactory#fnCreateProperty.
See the property template for details on use.
Parameters:
{String} iPropertyname
The name under which to register the property.
{VENISON.PROPERTY.Property} iProperty
The constructor for the property being registered.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu May 05 2011 18:47:29 GMT+0200 (CEST)