Factory Methods

The methods listed in the table Factory Methods are available in the factory that is available for each BOM package.

Factory Methods

Method Return Value Description
create(className)
  • className is a fully-qualified name of the BOM JavaScript class. This must be a class managed by the given factory.
Object Creates an instance of the given class.

ControlWrapper uses this method to support cases where the type of object being managed by a complex custom control is not known at design time.

From form action methods, the specific createXXX() method for a given class should be used.

getClass(className)
  • className is a fully-qualified name of the BOM JavaScript class. This must be a class managed by the given factory.
Object Returns the class object for the class with the given name.