Package org.vaadin.firitin.rad
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
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdjust save button state.com.fasterxml.jackson.databind.introspect.BasicBeanDescriptionprotected voidcom.vaadin.flow.component.Componentcom.vaadin.flow.component.ComponentintgetLevel()getPropertyContext(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition property) Class<?>[]protected jakarta.validation.ValidatorgetValue()protected voidonAttach(com.vaadin.flow.component.AttachEvent attachEvent) com.vaadin.flow.component.dialog.Dialogparent()protected booleanrequireFullWidthForFormLayout(com.vaadin.flow.component.Component c) voidsetDeleteHandler(com.vaadin.flow.function.SerializableConsumer<T> deleteHandler) voidsetResetHandler(com.vaadin.flow.function.SerializableConsumer<T> resetHandler) voidsetSaveHandler(com.vaadin.flow.function.SerializableConsumer<T> saveHandler) voidsetValidationGroups(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, initContentMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods 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
-
requireFullWidthForFormLayout
protected boolean requireFullWidthForFormLayout(com.vaadin.flow.component.Component c) -
onAttach
protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent) - Overrides:
onAttachin classcom.vaadin.flow.component.Component
-
withPropertyHeaderPrinter
-
getFormBody
public com.vaadin.flow.component.Component getFormBody() -
getValue
-
getBinder
-
value
- Specified by:
valuein interfaceValueContext
-
parent
- Specified by:
parentin interfaceValueContext
-
beanDescription
public com.fasterxml.jackson.databind.introspect.BasicBeanDescription beanDescription()- Specified by:
beanDescriptionin interfaceValueContext
-
getLocale
- Specified by:
getLocalein interfaceValueContext- Overrides:
getLocalein classcom.vaadin.flow.component.Component
-
getPrettyPrinter
- Specified by:
getPrettyPrinterin interfaceValueContext
-
getPropertyContext
public PropertyContext getPropertyContext(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition property) - Specified by:
getPropertyContextin interfaceValueContext
-
getLevel
public int getLevel()- Specified by:
getLevelin 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()
-