Class EntityInspectorDetailView
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.flowui.view.StandardDetailView<Object>
io.jmix.datatoolsflowui.view.entityinspector.EntityInspectorDetailView
- 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,ChangeTracker,DetailView<Object>,ReadOnlyAwareView,Serializable
@Route(value="datatl/entityinspector/:entityName/:entityId",
layout=DefaultMainViewParent.class)
@ViewController("datatl_entityInspectorDetailView")
@ViewDescriptor("entity-inspector-detail-view.xml")
@DialogMode(width="50em",
resizable=true)
public class EntityInspectorDetailView
extends StandardDetailView<Object>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.StandardDetailView
StandardDetailView.AfterSaveEvent, StandardDetailView.BeforeSaveEvent, StandardDetailView.InitEntityEvent<E>, StandardDetailView.SetupLockEvent, 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.RestoreComponentsStateEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessManagerprotected Actionsprotected static final Stringstatic final Stringprotected InstanceContainerprotected DataComponentsprotected DataContextprotected DataManagerprotected EntityStatesprotected Booleanprotected MessageBundleprotected MessageToolsprotected MetaClassprotected Metadataprotected Stringprotected Stringprotected MetadataToolsprotected CollectionContainer<Object>protected DataContextprotected Stringstatic final Stringstatic final Stringprotected static final Stringprotected static final Stringprotected com.vaadin.flow.component.tabs.Tabsprotected HashMap<com.vaadin.flow.component.tabs.Tab,com.vaadin.flow.component.Component> protected UiComponentsprotected UrlParamSerializerFields 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 JmixButtonaddButton(DataGrid<?> dataGrid, MetaProperty metaProperty) protected voidaddComponentBeforeDetailActions(com.vaadin.flow.component.Component component) protected voidaddDataGrid(InstanceContainer parent, MetaProperty childMeta) Creates a dataGrid for the entities in ONE_TO_MANY or MANY_TO_MANY relation with the current onevoidbeforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) protected AddActioncreateAddAction(DataGrid<?> dataGrid, MetaProperty metaProperty) protected JmixButtoncreateButton(DataGrid<?> dataGrid, MetaProperty metaProperty) protected com.vaadin.flow.component.orderedlayout.HorizontalLayoutcreateButtonsPanel(DataGrid<?> dataGrid, MetaProperty metaProperty, CollectionContainer dataGridContainer) protected voidprotected CreateActioncreateCreateAction(DataGrid<?> dataGrid, MetaProperty metaProperty) protected CollectionContainercreateDataGridContainer(InstanceContainer parent, MetaProperty childMeta, MetaClass meta) protected EditActioncreateEditAction(DataGrid<?> dataGrid, MetaProperty metaProperty, CollectionContainer dataGridContainer) protected voidprotected SecuredListDataComponentActioncreateRemoveAction(DataGrid<?> dataGrid, MetaProperty metaProperty) Creates either Remove or Exclude action depending on property typeprotected JmixButtoneditButton(DataGrid<?> dataGrid, MetaProperty metaProperty, CollectionContainer dataGridContainer) protected InstanceContainerprotected StringgetPropertyTitle(MetaClass metaClass, MetaProperty metaProperty) protected Stringprotected InstanceContainerinitMainContainer(Object entity) protected voidvoidonBeforeShow(View.BeforeShowEvent event) voidonInit(View.InitEvent event) protected voidonSelectedTabChange(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent selectedChangeEvent) protected JmixButtonremoveButton(DataGrid<?> dataGrid, MetaProperty metaProperty) voidsetMetadataClassName(String metadataClassName) voidsetMetadataId(String metadataId) voidsetParentDataContainer(CollectionContainer<Object> dataContainer) voidsetParentDataContext(DataContext parentDataContext) voidsetParentProperty(String parentProperty) protected voidsetupEntityToEdit(Object entityToEdit) Invoked when the view is opened in dialog window or when the view is opened by navigation andStandardDetailView.setEntityToEdit(Object)method is called inAfterViewNavigationEventhandler.protected voidsetupEntityToEdit(String serializedEntityId) Invoked when the view is opened by navigation.Methods inherited from class io.jmix.flowui.view.StandardDetailView
addAfterSaveListener, addBeforeSaveListener, addInitEntityListener, addValidationEventListener, clearChanges, closeWithDiscard, closeWithSave, findEntityId, getEditedEntity, getEditedEntityLoader, getEditedEntityOrNull, getLockStatus, getSaveNotificationText, hasUnsavedChanges, initExistingEntity, initNewEntity, isCrossFieldValidationEnabled, isReadOnly, isReloadEdited, isReloadSaved, isSaveActionPerformed, isShowSaveNotification, isShowValidationErrors, onDetachInternal, save, setCrossFieldValidationEnabled, setEntityToEdit, setReadOnly, setReloadEdited, setReloadSaved, setShowSaveNotification, setShowValidationErrors, setupEntityToEdit, validateViewMethods inherited from class io.jmix.flowui.view.StandardView
initContentMethods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, addRestoreComponentsStateEventListener, afterNavigation, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getEventBus, getId, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, 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, 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
-
BASE_SELECT_QUERY
- See Also:
-
SOFT_DELETABLE_SELECT_QUERY
- See Also:
-
SINGLE_SELECT_QUERY
- See Also:
-
ROUTE_PARAM_NAME
- See Also:
-
ROUTE_PARAM_ID
- See Also:
-
BUTTONS_PANEL_STYLE_NAME
- See Also:
-
metadata
-
messageTools
-
uiComponents
-
dataComponents
-
accessManager
-
metadataTools
-
actions
-
entityStates
-
dataManager
-
messageBundle
-
urlParamSerializer
-
tabs
protected com.vaadin.flow.component.tabs.Tabs tabs -
parentDataContext
-
parentProperty
-
dataContext
-
parentDataContainer
-
tabToContentMap
protected HashMap<com.vaadin.flow.component.tabs.Tab,com.vaadin.flow.component.Component> tabToContentMap -
isNew
-
container
-
metadataClassName
-
metadataId
-
metaClass
-
-
Constructor Details
-
EntityInspectorDetailView
public EntityInspectorDetailView()
-
-
Method Details
-
onInit
-
beforeEnter
public void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) - Specified by:
beforeEnterin interfacecom.vaadin.flow.router.internal.BeforeEnterHandler- Overrides:
beforeEnterin classStandardDetailView<Object>
-
onBeforeShow
-
onAfterSave
-
setupEntityToEdit
Description copied from class:StandardDetailViewInvoked when the view is opened by navigation.- Overrides:
setupEntityToEditin classStandardDetailView<Object>- Parameters:
serializedEntityId- serialized id of the edited entity orStandardDetailView.NEW_ENTITY_IDwhen creating new entity
-
createNewItemByMetaClass
protected void createNewItemByMetaClass() -
setupEntityToEdit
Description copied from class:StandardDetailViewInvoked when the view is opened in dialog window or when the view is opened by navigation andStandardDetailView.setEntityToEdit(Object)method is called inAfterViewNavigationEventhandler.- Overrides:
setupEntityToEditin classStandardDetailView<Object>- Parameters:
entityToEdit- entity instance to edit. Can be a new instance when the entity is being created, seeEntityStates.isNew(Object).
-
initMainContainer
-
getRouteParamName
- Overrides:
getRouteParamNamein classStandardDetailView<Object>
-
getEditedEntityContainer
- Overrides:
getEditedEntityContainerin classStandardDetailView<Object>
-
getPageTitle
- Specified by:
getPageTitlein interfacecom.vaadin.flow.router.HasDynamicTitle- Overrides:
getPageTitlein classView<ViewLayout>
-
createContent
protected void createContent() -
onSelectedTabChange
protected void onSelectedTabChange(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent selectedChangeEvent) -
addDataGrid
Creates a dataGrid for the entities in ONE_TO_MANY or MANY_TO_MANY relation with the current one -
createDataGridContainer
protected CollectionContainer createDataGridContainer(InstanceContainer parent, MetaProperty childMeta, MetaClass meta) -
getPropertyTitle
-
createButtonsPanel
protected com.vaadin.flow.component.orderedlayout.HorizontalLayout createButtonsPanel(DataGrid<?> dataGrid, MetaProperty metaProperty, CollectionContainer dataGridContainer) -
addButton
-
createAddAction
-
createButton
-
createCreateAction
-
editButton
protected JmixButton editButton(DataGrid<?> dataGrid, MetaProperty metaProperty, CollectionContainer dataGridContainer) -
createEditAction
protected EditAction createEditAction(DataGrid<?> dataGrid, MetaProperty metaProperty, CollectionContainer dataGridContainer) -
removeButton
-
createRemoveAction
protected SecuredListDataComponentAction createRemoveAction(DataGrid<?> dataGrid, MetaProperty metaProperty) Creates either Remove or Exclude action depending on property type -
addComponentBeforeDetailActions
protected void addComponentBeforeDetailActions(com.vaadin.flow.component.Component component) -
setMetadataClassName
-
setMetadataId
-
setParentDataContext
-
setParentProperty
-
setParentDataContainer
-