Form factory class which provides support for constructing the user-interface
components and associated bindings for a JForm component.
Generally, applications need not interact directly with this class because
the default operation of the JForm component will invoke this factory as
necessary to construct the form based on how the application binds the form
to the application's data models.
This factory provides methods for 3 key form-building operations:
createComponent: given a MetaData object which describes a data field
(name, type, edit constraints, etc), return the user-interface component
which can best display and/or edit values for that field.
createBinding: given a user-interface component and a named field on a
data model, return the Binding instance required to bind that component
to that field.
addComponent: adds the provided component to the specified form container,
including laying it out according to the layout paradigm of the form
factory
This factory can handle non-visual data fields - createComponent will return
null in that case.
Note that a form factory is stateless and these methods operate independent
of each other, thus an application may invoke only those methods it requires
to construct the form. For example, an application that wishes to use the
form factory's components and bindings, but intends to handle the layout
itself, may choose to invoke only the first two methods.
Generally, applications need not interact directly with this class because the default operation of the JForm component will invoke this factory as necessary to construct the form based on how the application binds the form to the application's data models.
This factory provides methods for 3 key form-building operations:
This factory can handle non-visual data fields - createComponent will return null in that case. Note that a form factory is stateless and these methods operate independent of each other, thus an application may invoke only those methods it requires to construct the form. For example, an application that wishes to use the form factory's components and bindings, but intends to handle the layout itself, may choose to invoke only the first two methods.