Class DynamicAttributeModelDetailView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<ViewLayout>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.flowui.view.StandardDetailView<DynamicAttributeModel>
io.jmix.dynmodelflowui.view.attribute.DynamicAttributeModelDetailView
- 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,FacetOwner,FragmentOwner,ChangeTracker,DetailView<DynamicAttributeModel>,HasEditedEntity<DynamicAttributeModel>,ReadOnlyAwareView,ReadOnlyTracker,SupportEntityLock<DynamicAttributeModel>,Serializable
@DialogMode(width="540px",
height="720px",
resizable=true)
@ViewController(id="dynmod_Attribute.detail")
@ViewDescriptor(path="dynamic-attribute-model-detail-view.xml")
public class DynamicAttributeModelDetailView
extends StandardDetailView<DynamicAttributeModel>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.StandardDetailView
StandardDetailView.AfterSaveEvent, StandardDetailView.BeforeSaveEvent, StandardDetailView.InitEntityEvent<E>, StandardDetailView.ValidationEventNested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.PostReadyEvent, View.QueryParametersChangeEvent, View.ReadyEvent, View.RestoreComponentsStateEventNested classes/interfaces inherited from interface io.jmix.flowui.view.ReadOnlyTracker
ReadOnlyTracker.ReadOnlyChangeEvent -
Field Summary
Fields inherited from class io.jmix.flowui.view.StandardDetailView
DEFAULT_ROUTE_PARAM, LOCKED_BEFORE_REFRESH_ATTR_NAME, MODE_PARAM, MODE_READONLY, NEW_ENTITY_ID, READ_ONLY_BEFORE_REFRESH_ATTR_NAME, reloadSaved -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyIndexedByApplicationState(boolean indexedByApplication) Shows an attribute the application's own index definition already indexes as searchable and not editable, with the reason as the checkbox tooltip.protected booleanWhether Search indexes this attribute because of an index definition declared by the application, where the searchable flag makes no difference.protected booleanvoidvoidonBeforeShow(View.BeforeShowEvent event) voidvoidonDynamicAttributeModelDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<DynamicAttributeModel> event) voidonInit(View.InitEvent event) voidonModifyRolesFieldValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixMultiSelectComboBox<String>, Set<String>> event) voidonReady(View.ReadyEvent event) voidonViewRolesFieldValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixMultiSelectComboBox<String>, Set<String>> event) voidsetExistingAttributeKeys(Set<String> existingAttributeKeys) voidsetModelDefinition(@Nullable DynamicModelDefinitionModel modelDefinition) Configured by the parent settings view throughviewConfigurerto surface dynamic enums and entities declared in the same model graph in theenumerationandentityNamecombos.voidsetParentEntity(@Nullable DynamicEntityModel entity) Methods inherited from class io.jmix.flowui.view.StandardDetailView
addAfterSaveListener, addBeforeSaveListener, addInitEntityListener, addReadOnlyStateChangeListener, addValidationEventListener, beforeEnter, clearChanges, close, closeWithDiscard, closeWithSave, doNotReloadEditedEntity, findEntityId, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getEditedEntityOrNull, getLockStatus, getRouteParamName, getSaveNotificationText, hasUnsavedChanges, initExistingEntity, initNewEntity, isCrossFieldValidationEnabled, isReadOnly, isReloadEdited, isReloadSaved, isSaveActionPerformed, isShowSaveNotification, isShowValidationErrors, onDetachInternal, preventUnsavedChanges, processBeforeEnterInternal, resolveEntityClass, save, setCrossFieldValidationEnabled, setEntityToEdit, setReadOnly, setReloadEdited, setReloadSaved, setShowSaveNotification, setShowValidationErrors, setupEntityToEdit, setupEntityToEdit, setupEntityToEdit, validateViewMethods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addApplicationListeners, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, addRestoreComponentsStateEventListener, afterNavigation, beforeLeave, close, closeWithDefaultAction, configureDialogWindowFooter, configureDialogWindowHeader, getApplicationContext, getEventBus, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onAttachInternal, onDetach, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setPageTitle, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContentMethods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, findAncestor, fireEvent, from, get, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setTestId, setVisible, whenAttachedMethods 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, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
DynamicAttributeModelDetailView
public DynamicAttributeModelDetailView()
-
-
Method Details
-
setParentEntity
-
setExistingAttributeKeys
-
setModelDefinition
Configured by the parent settings view throughviewConfigurerto surface dynamic enums and entities declared in the same model graph in theenumerationandentityNamecombos. -
onInit
-
onBeforeShow
-
onReady
-
onDynamicAttributeModelDcItemPropertyChange
@Subscribe(id="dynamicAttributeModelDc", target=DATA_CONTAINER) public void onDynamicAttributeModelDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<DynamicAttributeModel> event) -
onViewRolesFieldValueChange
@Subscribe("viewRolesField") public void onViewRolesFieldValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixMultiSelectComboBox<String>, Set<String>> event) -
onModifyRolesFieldValueChange
@Subscribe("modifyRolesField") public void onModifyRolesFieldValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixMultiSelectComboBox<String>, Set<String>> event) -
onBeforeSave
-
applyIndexedByApplicationState
protected void applyIndexedByApplicationState(boolean indexedByApplication) Shows an attribute the application's own index definition already indexes as searchable and not editable, with the reason as the checkbox tooltip. The checkbox is unbound while in that state, so the stored flag is untouched. -
isIndexedByApplicationDefinition
protected boolean isIndexedByApplicationDefinition()Whether Search indexes this attribute because of an index definition declared by the application, where the searchable flag makes no difference. Answered only when the Search add-on is present. -
isSearchAddonPresent
protected boolean isSearchAddonPresent() -
onDynamicAttributeModelDcItemChange
@Subscribe(id="dynamicAttributeModelDc", target=DATA_CONTAINER) public void onDynamicAttributeModelDcItemChange(InstanceContainer.ItemChangeEvent<DynamicAttributeModel> event)
-