Class DynamicViewHandlerModelDetailView
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<DynamicViewHandlerModel>
io.jmix.dynmodelflowui.view.viewhandler.DynamicViewHandlerModelDetailView
- 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<DynamicViewHandlerModel>,HasEditedEntity<DynamicViewHandlerModel>,ReadOnlyAwareView,ReadOnlyTracker,SupportEntityLock<DynamicViewHandlerModel>,Serializable
@DialogMode(width="640px",
height="480px",
resizable=true)
@ViewController(id="dynmod_ViewHandler.detail")
@ViewDescriptor(path="dynamic-view-handler-model-detail-view.xml")
public class DynamicViewHandlerModelDetailView
extends StandardDetailView<DynamicViewHandlerModel>
- 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 TypeMethodDescriptionvoidonBeforeShow(View.BeforeShowEvent event) voidonComponentIdFieldValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<String>, String> event) voidonEventFieldValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<DynamicViewHandlerEvent>, DynamicViewHandlerEvent> event) voidonInit(View.InitEvent event) voidvoidsetComponentInfos(List<DynamicViewComponentIdProvider.ComponentInfo> componentInfos) Configured by the view editor throughviewConfigurerwith the components declared in the view this handler belongs to.voidsetDetailView(boolean detailView) Configured by the view editor throughviewConfigurer.voidsetEntity(@Nullable DynamicEntityModel entity) Configured by the view editor throughviewConfigurerwith the entity that owns the view, so the expression editor can offer the attributes reachable throughentity.voidsetHandlerNames(List<String> handlerNames) Configured by the view editor throughviewConfigurerwith the names of all handlers declared in the same view, offered as the follow-up ofdialogs.confirm.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
-
DynamicViewHandlerModelDetailView
public DynamicViewHandlerModelDetailView()
-
-
Method Details
-
setComponentInfos
Configured by the view editor throughviewConfigurerwith the components declared in the view this handler belongs to. The combo still accepts a typed value, so an empty list only means no suggestions. -
setDetailView
public void setDetailView(boolean detailView) Configured by the view editor throughviewConfigurer. TheinitEntitytrigger fires when a new entity is initialized for editing, so it is offered only for detail views. -
setHandlerNames
Configured by the view editor throughviewConfigurerwith the names of all handlers declared in the same view, offered as the follow-up ofdialogs.confirm. -
setEntity
Configured by the view editor throughviewConfigurerwith the entity that owns the view, so the expression editor can offer the attributes reachable throughentity. -
onInit
-
onBeforeShow
-
onComponentIdFieldValueChange
@Subscribe("componentIdField") public void onComponentIdFieldValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<String>, String> event) -
onEventFieldValueChange
@Subscribe("eventField") public void onEventFieldValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<DynamicViewHandlerEvent>, DynamicViewHandlerEvent> event) -
onValidation
-