|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swing.form.FormFactory
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:
| Constructor Summary | |
FormFactory()
|
|
| Method Summary | |
abstract void |
addComponent(JComponent parent,
JComponent component,
MetaData metaData)
Adds the component to the specified parent container and configures its layout within that container according to the form factory's layout paradigm. |
abstract Binding |
createBinding(DataModel model,
String fieldName,
JComponent component)
Factory method for returning the binding object which connects the user-interface component to the specified field in a data model. |
abstract JComponent |
createComponent(MetaData metaData)
Factory method for returning the user-interface component best suited to edit/display values for the data model field represented by the metaData object. |
static FormFactory |
getDefaultFormFactory()
|
static void |
setDefaultFormFactory(FormFactory formFactory)
Sets the default FormFactory instance which is shared across the application. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FormFactory()
| Method Detail |
public static FormFactory getDefaultFormFactory()
public static void setDefaultFormFactory(FormFactory formFactory)
formFactory - factory to be used as the default form factorypublic abstract JComponent createComponent(MetaData metaData)
metaData - object which describes the named field
public abstract Binding createBinding(DataModel model,
String fieldName,
JComponent component)
model - data model object to which the component is being boundfieldName - String containing the name of the field within the data modelcomponent - JComponent which can display/edit values defined by the metaData
object
public abstract void addComponent(JComponent parent,
JComponent component,
MetaData metaData)
parent - Container where the component is being addedcomponent - JComponent being added to the containermetaData - object which describes the named field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||