Class AutoFormContext
java.lang.Object
org.vaadin.firitin.rad.AutoFormContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> AutoForm
<T> createForm
(Class<T> type) <T> AutoForm
<T> createForm
(T value) Disables the default bean validation.static List
<PropertyPrinter> boolean
boolean
void
setAnnotateTypes
(boolean annotateTypes) void
withPropertyEditor
(PropertyPrinter propertyEditor) Registers a custom property editor that can be used to edit a property of a bean.
-
Constructor Details
-
AutoFormContext
public AutoFormContext() -
AutoFormContext
-
-
Method Details
-
getDefaultPropertyPrinters
-
isAnnotateTypes
public boolean isAnnotateTypes() -
setAnnotateTypes
public void setAnnotateTypes(boolean annotateTypes) -
getPropertyPrinters
-
createForm
-
createForm
-
withPropertyEditor
Registers a custom property editor that can be used to edit a property of a bean. The editors are tried in order, first one that returns a non-null value is used. The given editor is added to the beginning of the list, so it is tried first.- Parameters:
propertyEditor
- the editor to add- Returns:
- this for chaining
-
withPropertyHeaderPrinter
-
disableBeanValidation
Disables the default bean validation. By default, the bean validation is enabled if found from the classpath.- Returns:
- this for chaining
-
isDefaultBeanValidation
public boolean isDefaultBeanValidation() -
getLocale
-
setLocale
-
getHiddenProperties
-