Class ccs.objectFactory
- Defined in: ObjectFactory.js
Constructor Attributes | Constructor Name and Description |
---|---|
The singleton object that creating object factory, it creates object with class name, and manager the type mapping.
|
Method Summary
Class Detail
ccs.objectFactory()
The singleton object that creating object factory, it creates object with class name, and manager the type mapping.
Method Detail
-
{ccui.Widget|null} createGUI(name)Creates ccui widget object.
- Parameters:
- {String} name
- widget name
- Returns:
- {ccui.Widget|null}
-
{*} createObject(className)Creates object with class name. if the the class name without register in type map, it returns null.
- Parameters:
- {String} className
- Returns:
- {*}
-
registerType(t)Registers class type in type map.
- Parameters:
- {ccs.TInfo} t