|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.jdnc.form.FormFactory
org.jdesktop.jdnc.form.DefaultFormFactory
public class DefaultFormFactory
note:technically this should probably be in a FormUI, or initialized from a FormUI.
| Constructor Summary | |
|---|---|
DefaultFormFactory()
|
|
| Method Summary | |
|---|---|
Binding |
addComponent(javax.swing.JComponent parent,
javax.swing.JComponent component,
DataModel model,
java.lang.String fieldName)
Adds the component to the specified parent container and configures its layout within that container according to the form factory's layout paradigm. |
void |
addComponent(javax.swing.JComponent parent,
javax.swing.JComponent component,
MetaData metaData)
Deprecated. use method with dataModel instead. |
Binding |
createBinding(DataModel model,
java.lang.String fieldName,
javax.swing.JComponent component)
delegates to current BindingMap. |
javax.swing.JComponent |
createComponent(MetaData metaData)
Delegates to current ComponentMap. |
| Methods inherited from class org.jdesktop.jdnc.form.FormFactory |
|---|
getDefaultFormFactory, isNonVisual, setDefaultFormFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFormFactory()
| Method Detail |
|---|
public javax.swing.JComponent createComponent(MetaData metaData)
createComponent in class FormFactorymetaData - object which describes the named field
public Binding createBinding(DataModel model,
java.lang.String fieldName,
javax.swing.JComponent component)
createBinding in class FormFactorymodel - 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 void addComponent(javax.swing.JComponent parent,
javax.swing.JComponent component,
MetaData metaData)
FormFactory
addComponent in class FormFactoryparent - Container where the component is being addedcomponent - JComponent being added to the containermetaData - object which describes the named field
public Binding addComponent(javax.swing.JComponent parent,
javax.swing.JComponent component,
DataModel model,
java.lang.String fieldName)
FormFactory
addComponent in class FormFactoryparent - Container where the component is being addedcomponent - JComponent being added to the containermodel - the data to take the field from.fieldName - name of the field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||