Class TemplateDataForm

java.lang.Object
All Implemented Interfaces:
ClickHandler, ExecutableView, HasContainer, ValueChangeHandler, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<? extends com.vaadin.flow.component.Component>>, com.vaadin.flow.component.HasValue.ValueChangeListener, Serializable, Runnable, EventListener

public abstract class TemplateDataForm extends AbstractDataForm<Object>
This is an equivalent of the DataForm class except that the content is based on HTML template. However, it doesn't support "window mode" because the whole UI part is controlled by the HTML template. Two "Id" values ("Ok" and "Cancel" buttons) must be mapped and must use the vaadin-button tags. Also, there is no concept of "button panel" as in DataForm. All required fields should be defined using "Id" annotations and createComponentForId(String) because methods addField(String, HasValue) and addField(HasValue[]) do not work.
Author:
Syam
See Also: