Class AutoForm<T>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
org.vaadin.firitin.rad.AutoForm<T>
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasStyle
,Serializable
,ValueContext
public class AutoForm<T>
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
implements ValueContext
A form that automatically creates fields for all properties of a bean. Not meant to created directly, but through
AutoFormContext
.- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adjust save button state.com.fasterxml.jackson.databind.introspect.BasicBeanDescription
protected void
com.vaadin.flow.component.Component
com.vaadin.flow.component.Component
int
getLevel()
getPropertyContext
(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition property) Class<?>[]
protected jakarta.validation.Validator
getValue()
protected void
onAttach
(com.vaadin.flow.component.AttachEvent attachEvent) com.vaadin.flow.component.dialog.Dialog
parent()
void
setDeleteHandler
(com.vaadin.flow.function.SerializableConsumer<T> deleteHandler) void
setResetHandler
(com.vaadin.flow.function.SerializableConsumer<T> resetHandler) void
setSaveHandler
(com.vaadin.flow.function.SerializableConsumer<T> saveHandler) void
setValidationGroups
(Class<?>... groups) value()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContent
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
Methods inherited from interface org.vaadin.firitin.rad.ValueContext
toShortString
-
Field Details
-
SHORT_STRING_THRESHOLD
public static final int SHORT_STRING_THRESHOLD- See Also:
-
-
Method Details
-
onAttach
protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent) - Overrides:
onAttach
in classcom.vaadin.flow.component.Component
-
withPropertyHeaderPrinter
-
getFormBody
public com.vaadin.flow.component.Component getFormBody() -
getValue
-
getBinder
-
value
- Specified by:
value
in interfaceValueContext
-
parent
- Specified by:
parent
in interfaceValueContext
-
beanDescription
public com.fasterxml.jackson.databind.introspect.BasicBeanDescription beanDescription()- Specified by:
beanDescription
in interfaceValueContext
-
getLocale
- Specified by:
getLocale
in interfaceValueContext
- Overrides:
getLocale
in classcom.vaadin.flow.component.Component
-
getPrettyPrinter
- Specified by:
getPrettyPrinter
in interfaceValueContext
-
getPropertyContext
public PropertyContext getPropertyContext(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition property) - Specified by:
getPropertyContext
in interfaceValueContext
-
getLevel
public int getLevel()- Specified by:
getLevel
in interfaceValueContext
-
setSaveHandler
-
setDeleteHandler
-
setResetHandler
-
getActions
public com.vaadin.flow.component.Component getActions() -
withBeanValidation
Deprecated, for removal: This API element is subject to removal in a future version. -
adjustSaveButtonState
protected void adjustSaveButtonState()Adjust save button state. Override if you for example want to have Save button always enabled, even if the Binder has not tracked any changes yet. -
doBeanValidation
protected void doBeanValidation() -
getValidator
protected jakarta.validation.Validator getValidator() -
getValidationGroups
-
setValidationGroups
-
openInDialog
public com.vaadin.flow.component.dialog.Dialog openInDialog()
-