T
- item type.public class FormView<T> extends Object implements EditorView<T>, ItemEditor
Binder
per Locale
,
then binds form components accordingly and finally creates one layout for each available locale.FormPresenter
,
Serialized FormConstructor and Description |
---|
FormView(FormDefinition<T> formDefinition,
LocaleContext localeContext) |
Modifier and Type | Method and Description |
---|---|
com.vaadin.ui.Component |
asVaadinComponent()
Convenience method implementation.
|
Stream<String> |
getPropertyNames() |
<V> Optional<V> |
getPropertyValue(String propertyName) |
<V> Optional<V> |
getPropertyValue(String propertyName,
Locale locale) |
void |
populate(T item) |
List<com.vaadin.data.BinderValidationStatus<?>> |
validate()
Validates this forms and all its sub-forms recursively.
|
void |
write(T localisedItemSources) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessViewBeanStore, bindContext, bindInstance, create, create, create, create, destroy, getComponentProvider, getCurrentViewReference
@Inject public FormView(FormDefinition<T> formDefinition, LocaleContext localeContext)
public <V> Optional<V> getPropertyValue(String propertyName)
getPropertyValue
in interface ItemEditor
public void populate(T item)
populate
in interface EditorView<T>
public void write(T localisedItemSources)
write
in interface EditorView<T>
public List<com.vaadin.data.BinderValidationStatus<?>> validate()
validate
in interface EditorView<T>
BinderValidationStatus
public <V> Optional<V> getPropertyValue(String propertyName, Locale locale)
getPropertyValue
in interface ItemEditor
public Stream<String> getPropertyNames()
getPropertyNames
in interface ItemEditor
public com.vaadin.ui.Component asVaadinComponent()
UIComponent
asVaadinComponent
in interface View
asVaadinComponent
in interface UIComponent
Copyright © 2020 Magnolia International Ltd.. All rights reserved.