@Deprecated public class FormBuilderBase extends Object
FormBuilder.
Base class for form builder engines.| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG
Deprecated.
|
| Constructor and Description |
|---|
FormBuilderBase()
Deprecated.
|
FormBuilderBase(Class<T> clz,
IReadOnlyModel<T> mdl)
Deprecated.
Constructor to immediately initialize for a given class and reader.
|
FormBuilderBase(T instance)
Deprecated.
Initialize with a single unchangeable instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected ControlFactoryResult |
createControlFor(IReadOnlyModel<?> model,
PropertyMetaModel<?> pmm,
boolean editable)
Deprecated.
Create the optimal control for the specified thingy, and return the binding for it.
|
ModelBindings |
getBindings()
Deprecated.
|
ControlBuilder |
getBuilder()
Deprecated.
|
protected ClassMetaModel |
getClassMeta()
Deprecated.
Return the currently active class metamodel (the model that properties are obtained from).
|
IControlLabelFactory |
getControlLabelFactory()
Deprecated.
Return the factory to use for creating control labels from metadata.
|
Class<?> |
getCurrentInputClass()
Deprecated.
|
IReadOnlyModel<?> |
getModel()
Deprecated.
Return the current ReadOnlyModel which is the accessor to get the instance that will be edited.
|
protected PropertyMetaModel<?> |
resolveProperty(String name)
Deprecated.
Find a property relative to the current input class.
|
void |
setBindings(ModelBindings bindings)
Deprecated.
|
<T> void |
setClassModel(Class<T> clz,
IReadOnlyModel<T> mdl)
Deprecated.
Set or change the current base class and base model.
|
void |
setControlLabelFactory(IControlLabelFactory controlLabelFactory)
Deprecated.
|
<T> void |
setInstance(T instance)
Deprecated.
|
void |
setMetaModel(ClassMetaModel cmm,
IReadOnlyModel<?> source)
Deprecated.
Sets the base metamodel and value source to use for obtaining properties.
|
void |
updateReadOnly(Object initialValue,
Object newObj)
Deprecated.
Convenience method for updating read only values based upon another value in the from that changes.
|
public FormBuilderBase()
public FormBuilderBase(Class<T> clz, IReadOnlyModel<T> mdl)
T - clz - mdl - public FormBuilderBase(T instance)
T - instance - public final ControlBuilder getBuilder()
protected ControlFactoryResult createControlFor(IReadOnlyModel<?> model, PropertyMetaModel<?> pmm, boolean editable)
container - This will receive all nodes forming the control.model - The content model used to obtain the Object instance whose property is being edited, for binding purposes.pmm - The property meta for the property to find an editor for.editable - When false this must make a displayonly control.public <T> void setClassModel(Class<T> clz, IReadOnlyModel<T> mdl)
T - clz - mdl - public void setMetaModel(ClassMetaModel cmm, IReadOnlyModel<?> source)
cmm - source - public <T> void setInstance(T instance)
protected ClassMetaModel getClassMeta()
protected PropertyMetaModel<?> resolveProperty(String name)
name - public IReadOnlyModel<?> getModel()
public Class<?> getCurrentInputClass()
public ModelBindings getBindings()
public void setBindings(ModelBindings bindings)
public IControlLabelFactory getControlLabelFactory()
public void setControlLabelFactory(IControlLabelFactory controlLabelFactory)
public void updateReadOnly(@Nullable Object initialValue, @Nullable Object newObj) throws Exception
b - initialValue - newObj - ExceptionCopyright © 2017 etc.to. All rights reserved.