Package io.jmix.bulkeditor.view
Class BulkEditView<E>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.bulkeditor.view.BulkEditView<E>
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,com.vaadin.flow.router.AfterNavigationObserver,com.vaadin.flow.router.BeforeEnterObserver,com.vaadin.flow.router.BeforeLeaveObserver,com.vaadin.flow.router.HasDynamicTitle,com.vaadin.flow.router.internal.AfterNavigationHandler,com.vaadin.flow.router.internal.BeforeEnterHandler,com.vaadin.flow.router.internal.BeforeLeaveHandler,FragmentOwner,Serializable
@ViewController("bulkEditorWindow")
@ViewDescriptor("bulk-edit-view.xml")
@Route("bulk-edit")
@DialogMode(resizable=true,
width="64em",
height="48em",
minWidth="18em")
public class BulkEditView<E>
extends StandardView
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JmixButtonprotected Actionprotected org.springframework.beans.factory.ObjectProvider<BulkEditViewBeanPropertyValidator>protected BulkEditViewContext<E>protected BulkEditViewDataLoadSupportprotected DataManagerprotected Dialogsprotected FetchPlanprotected FetchPlanRepositoryprotected FetchPlansprotected static final Stringprotected com.vaadin.flow.component.formlayout.FormLayoutprotected com.vaadin.flow.component.html.Divprotected BulkEditViewManagedFieldProviderprotected org.springframework.beans.factory.ObjectProvider<BulkEditViewManagedFieldProvider>protected Map<String,BulkEditViewManagedField> protected MessageBundleprotected Messagesprotected Metadataprotected MetadataToolsprotected Notificationsprotected UiComponentsprotected UiComponentsGeneratorprotected jakarta.validation.Validatorprotected ViewValidation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddFetchPlanProperties(FetchPlanBuilder builder, MetaProperty metaProperty, String fqn) protected voidapplyModelValidators(ValidationErrors errors) voidprotected voidprotected JmixButtoncreateClearButton(com.vaadin.flow.component.AbstractField<?, ?> field, boolean isFieldRequired) protected com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>>createClearButtonClickListener(com.vaadin.flow.component.AbstractField<?, ?> editField) protected voidprotected FetchPlancreateEmbeddedFetchPlan(MetaClass metaClass, String fqnPrefix) protected FetchPlancreateFetchPlan(MetaClass metaClass, Collection<String> managedEmbeddedProperties) protected com.vaadin.flow.component.AbstractField<?,?> createField(BulkEditViewManagedField managedField) protected com.vaadin.flow.component.ComponentcreateFieldComponent(BulkEditViewManagedField managedField) protected Comparator<BulkEditViewManagedField>createManagedFieldComparator(List<BulkEditViewManagedField> editFields) protected voidensureEmbeddedPropertyCreated(E item, String propertyPath) protected voidfocusFirstPossibleField(Map<String, com.vaadin.flow.component.AbstractField<?, ?>> dataFields) protected BulkEditViewBeanPropertyValidatorgetBeanPropertyValidator(MetaProperty metaProperty) protected booleanprotected booleanisFieldChanged(com.vaadin.flow.component.AbstractField<?, ?> field) protected booleanisFieldRequired(BulkEditViewManagedField managedField) protected booleanisTenantMetaProperty(MetaProperty metaProperty) protected voidprotected voidprotected voidprotected voidonBeforeShow(View.BeforeShowEvent event) protected voidvoidsetBulkEditorContext(BulkEditViewContext<E> context) protected voidshowConfirmDialogOrCommit(List<String> fields) protected voidprotected ValidationErrorsMethods inherited from class io.jmix.flowui.view.StandardView
initContentMethods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, onDetachInternal, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, 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, setClassName
-
Field Details
-
FIELD_MIN_WIDTH
- See Also:
-
applyBtn
-
applyChanges
-
infoDiv
-
fieldLayout
-
dataLoadSupport
-
dataManager
-
dialogs
-
fetchPlans
-
fetchPlanRepository
-
messages
-
messageBundle
-
metadata
-
metadataTools
-
notifications
-
viewValidation
-
uiComponents
-
uiComponentsGenerator
-
validator
@Autowired protected jakarta.validation.Validator validator -
beanValidatorProvider
@Autowired protected org.springframework.beans.factory.ObjectProvider<BulkEditViewBeanPropertyValidator> beanValidatorProvider -
managedFieldProviderFactory
@Autowired protected org.springframework.beans.factory.ObjectProvider<BulkEditViewManagedFieldProvider> managedFieldProviderFactory -
managedFieldProvider
-
context
-
managedFields
-
dataFields
-
items
-
fetchPlan
-
-
Constructor Details
-
BulkEditView
public BulkEditView()
-
-
Method Details
-
onBeforeShow
-
setBulkEditorContext
-
createFetchPlan
protected FetchPlan createFetchPlan(MetaClass metaClass, Collection<String> managedEmbeddedProperties) -
isTenantMetaProperty
-
addFetchPlanProperties
protected void addFetchPlanProperties(FetchPlanBuilder builder, MetaProperty metaProperty, String fqn) -
createEmbeddedFetchPlan
-
loadItems
protected void loadItems() -
createDataComponents
protected void createDataComponents() -
createManagedFieldComparator
protected Comparator<BulkEditViewManagedField> createManagedFieldComparator(List<BulkEditViewManagedField> editFields) -
createFieldComponent
protected com.vaadin.flow.component.Component createFieldComponent(BulkEditViewManagedField managedField) -
createField
protected com.vaadin.flow.component.AbstractField<?,?> createField(BulkEditViewManagedField managedField) -
getBeanPropertyValidator
@Nullable protected BulkEditViewBeanPropertyValidator getBeanPropertyValidator(MetaProperty metaProperty) -
isFieldRequired
-
createClearButton
protected JmixButton createClearButton(com.vaadin.flow.component.AbstractField<?, ?> field, boolean isFieldRequired) -
createClearButtonClickListener
protected com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> createClearButtonClickListener(com.vaadin.flow.component.AbstractField<?, ?> editField) -
focusFirstPossibleField
-
onBeforeClose
-
preventUnsavedChanges
-
hasChanges
protected boolean hasChanges() -
isFieldChanged
protected boolean isFieldChanged(com.vaadin.flow.component.AbstractField<?, ?> field) -
closeWithDiscard
-
onApplyChanges
-
closeWithCommit
public void closeWithCommit() -
validateUiComponents
-
applyModelValidators
-
updateItemValues
protected void updateItemValues() -
ensureEmbeddedPropertyCreated
-
showConfirmDialogOrCommit
-
commitBulkChanges
protected void commitBulkChanges()
-