public class PojoFormRef<C> extends FormRef implements APojoForm<C>
| Constructor and Description |
|---|
PojoFormRef(PojoForm<C> form) |
| Modifier and Type | Method and Description |
|---|---|
C |
getPojo() |
java.lang.Class<C> |
getPojoType() |
int |
getPojoVersion() |
IPojoForm<C> |
setPojo(C pojo)
Sets the pojo object and moves data to fields connected to
its properties.
No validation is automatically triggered. |
boolean |
validate(java.lang.String fieldId,
boolean syncPojoEvenWithErrors,
java.lang.String... otherFieldsToValidate)
If the form is valid and not
#isShadow() and not IForm.isReadOnly() then field
values are moved to the relative pojo properties and the result of #validatePojo() is
returned. |
binded, bindField, equals, getAction, getActions, getBindedField, getBindedField, getBindedFields, getContraintsFor, getField, getField, getFields, getForm, getLabel, getMessage, getMessage, getMessages, getMessagesMap, getStrokes, hashCode, hasMessage, hasMessage, isEnabled, isReadOnly, registerAction, removeAction, replaceAction, setMessage, validategetClass, notify, notifyAll, toString, wait, wait, waitbinded, bindField, getAction, getActions, getBindedField, getBindedField, getBindedFields, getContraintsFor, getField, getField, getFields, getLabel, getMessage, getMessage, getMessages, getMessagesMap, getStrokes, hasMessage, hasMessage, isEnabled, isReadOnly, registerAction, removeAction, replaceAction, setMessage, validatepublic final java.lang.Class<C> getPojoType()
getPojoType in interface IPojoForm<C>getPojoType in interface IPojoFormView<C>public IPojoForm<C> setPojo(C pojo)
IPojoFormpublic final C getPojo()
public final int getPojoVersion()
getPojoVersion in interface IPojoForm<C>getPojoVersion in interface IPojoFormView<C>public boolean validate(java.lang.String fieldId,
boolean syncPojoEvenWithErrors,
java.lang.String... otherFieldsToValidate)
IPojoForm#isShadow() and not IForm.isReadOnly() then field
values are moved to the relative pojo properties and the result of #validatePojo() is
returned.validate in interface IPojoForm<C>syncPojoEvenWithErrors - - if true, field values are moved to the pojo even
if there are errors in the form.otherFieldsToValidate - - possible other fields that must be validated.