T
- item type.public class MultiFormView<T> extends Object implements EditorView<T>
Modifier and Type | Class and Description |
---|---|
static interface |
MultiFormView.EntryResolution<T>
Multi-form entry resolution strategy.
|
protected class |
MultiFormView.MultiFormState |
Constructor and Description |
---|
MultiFormView(MultiFormDefinition<T> definition,
LocaleContext localeContext,
Datasource<T> datasource) |
MultiFormView(MultiFormDefinition<T> definition,
info.magnolia.i18nsystem.SimpleTranslator i18n,
LocaleContext localeContext,
Datasource<T> datasource)
Deprecated.
since 6.2.3. please use
MultiFormView(MultiFormDefinition, LocaleContext, Datasource) instead. |
Modifier and Type | Method and Description |
---|---|
protected void |
addSubFormToState(EditorView<T> subForm,
ComplexPropertyDefinition<T> propertyDefinition) |
com.vaadin.ui.Component |
asVaadinComponent()
Convenience method implementation.
|
protected void |
attachAddButton() |
protected com.vaadin.ui.HorizontalLayout |
createButtonsLayout(EditorView<T> subForm,
com.vaadin.ui.HorizontalLayout wrapLayout) |
protected EditorView<T> |
createSubForm(ComplexPropertyDefinition<T> propertyDefinition) |
protected Locale |
getLocale() |
protected MultiFormView.MultiFormState |
getState() |
void |
layout() |
protected void |
onDelete(EditorView<T> subForm) |
protected void |
onMove(com.vaadin.ui.AbstractOrderedLayout movedLayout,
boolean moveUp) |
void |
populate(T item) |
protected void |
populateSubNodes(T item) |
List<com.vaadin.data.BinderValidationStatus<?>> |
validate() |
protected com.vaadin.ui.Component |
wrapChildForm(EditorView<T> subForm) |
void |
write(T item) |
protected void |
writeSubForm(T item,
Map<EditorView<T>,ItemProviderStrategy<T,T>> children,
List<T> itemOrder,
EditorView<T> subForm) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyDefaults
accessViewBeanStore, bindContext, bindInstance, create, create, create, create, destroy, getComponentProvider, getCurrentViewReference
@Inject public MultiFormView(MultiFormDefinition<T> definition, LocaleContext localeContext, Datasource<T> datasource)
@Deprecated public MultiFormView(MultiFormDefinition<T> definition, info.magnolia.i18nsystem.SimpleTranslator i18n, LocaleContext localeContext, Datasource<T> datasource)
MultiFormView(MultiFormDefinition, LocaleContext, Datasource)
instead.public List<com.vaadin.data.BinderValidationStatus<?>> validate()
validate
in interface EditorView<T>
public void write(T item)
write
in interface EditorView<T>
protected void writeSubForm(T item, Map<EditorView<T>,ItemProviderStrategy<T,T>> children, List<T> itemOrder, EditorView<T> subForm)
public com.vaadin.ui.Component asVaadinComponent()
UIComponent
asVaadinComponent
in interface View
asVaadinComponent
in interface UIComponent
public void populate(T item)
populate
in interface EditorView<T>
protected void populateSubNodes(T item)
protected EditorView<T> createSubForm(ComplexPropertyDefinition<T> propertyDefinition)
protected void addSubFormToState(EditorView<T> subForm, ComplexPropertyDefinition<T> propertyDefinition)
public void layout()
protected com.vaadin.ui.Component wrapChildForm(EditorView<T> subForm)
protected com.vaadin.ui.HorizontalLayout createButtonsLayout(EditorView<T> subForm, com.vaadin.ui.HorizontalLayout wrapLayout)
protected void attachAddButton()
protected void onMove(com.vaadin.ui.AbstractOrderedLayout movedLayout, boolean moveUp)
protected void onDelete(EditorView<T> subForm)
protected MultiFormView.MultiFormState getState()
protected Locale getLocale()
Copyright © 2021 Magnolia International Ltd.. All rights reserved.