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
,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
Modifier and TypeFieldDescriptionprotected JmixButton
protected Action
protected org.springframework.beans.factory.ObjectProvider<BulkEditViewBeanPropertyValidator>
protected BulkEditViewContext<E>
protected BulkEditViewDataLoadSupport
protected DataManager
protected Dialogs
protected FetchPlan
protected FetchPlanRepository
protected FetchPlans
protected static final String
protected com.vaadin.flow.component.formlayout.FormLayout
protected com.vaadin.flow.component.html.Div
protected BulkEditViewManagedFieldProvider
protected org.springframework.beans.factory.ObjectProvider<BulkEditViewManagedFieldProvider>
protected Map<String,
BulkEditViewManagedField> protected MessageBundle
protected Messages
protected Metadata
protected MetadataTools
protected Notifications
protected UiComponents
protected UiComponentsGenerator
protected jakarta.validation.Validator
protected ViewValidation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addFetchPlanProperties
(FetchPlanBuilder builder, MetaProperty metaProperty, String fqn) protected void
applyModelValidators
(ValidationErrors errors) void
protected void
protected JmixButton
createClearButton
(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 void
protected FetchPlan
createEmbeddedFetchPlan
(MetaClass metaClass, String fqnPrefix) protected FetchPlan
createFetchPlan
(MetaClass metaClass, Collection<String> managedEmbeddedProperties) protected com.vaadin.flow.component.AbstractField<?,
?> createField
(BulkEditViewManagedField managedField) protected com.vaadin.flow.component.Component
createFieldComponent
(BulkEditViewManagedField managedField) protected Comparator<BulkEditViewManagedField>
createManagedFieldComparator
(List<BulkEditViewManagedField> editFields) protected void
ensureEmbeddedPropertyCreated
(E item, String propertyPath) protected void
focusFirstPossibleField
(Map<String, com.vaadin.flow.component.AbstractField<?, ?>> dataFields) protected BulkEditViewBeanPropertyValidator
getBeanPropertyValidator
(MetaProperty metaProperty) protected boolean
protected boolean
isFieldChanged
(com.vaadin.flow.component.AbstractField<?, ?> field) protected boolean
isFieldRequired
(BulkEditViewManagedField managedField) protected boolean
isTenantMetaProperty
(MetaProperty metaProperty) protected void
protected void
protected void
protected void
onBeforeShow
(View.BeforeShowEvent event) protected void
void
setBulkEditorContext
(BulkEditViewContext<E> context) protected void
showConfirmDialogOrCommit
(List<String> fields) protected void
protected ValidationErrors
Methods inherited from class io.jmix.flowui.view.StandardView
initContent
Methods 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, setApplicationContext, setId, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods 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, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods 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()
-