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 SummaryNested classes/interfaces inherited from class io.jmix.flowui.view.StandardDetailViewStandardDetailView.AfterSaveEvent, StandardDetailView.BeforeSaveEvent, StandardDetailView.InitEntityEvent<E>, StandardDetailView.SetupLockEvent, StandardDetailView.ValidationEventNested classes/interfaces inherited from class io.jmix.flowui.view.ViewView.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent
- 
Field SummaryFieldsModifier 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.StandardDetailViewDEFAULT_ROUTE_PARAM, LOCKED_BEFORE_REFRESH_ATTR_NAME, MODE_PARAM, MODE_READONLY, NEW_ENTITY_ID, READ_ONLY_BEFORE_REFRESH_ATTR_NAME, reloadSaved
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.StandardDetailViewaddAfterSaveListener, addBeforeSaveListener, addInitEntityListener, addValidationEventListener, 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.StandardViewinitContentMethods inherited from class io.jmix.flowui.view.ViewaddAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, afterNavigation, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, 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.CompositegetChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.ComponentaddListener, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifieraddAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifieraddDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyleaddClassName, 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
- 
tabsprotected com.vaadin.flow.component.tabs.Tabs tabs
- 
parentDataContext
- 
parentProperty
- 
dataContext
- 
parentDataContainer
- 
tabToContentMapprotected HashMap<com.vaadin.flow.component.tabs.Tab,com.vaadin.flow.component.Component> tabToContentMap
- 
isNew
- 
container
- 
metadataClassName
- 
metadataId
- 
metaClass
 
- 
- 
Constructor Details- 
EntityInspectorDetailViewpublic EntityInspectorDetailView()
 
- 
- 
Method Details- 
onInit
- 
beforeEnterpublic void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) - Specified by:
- beforeEnterin interface- com.vaadin.flow.router.internal.BeforeEnterHandler
- Overrides:
- beforeEnterin class- StandardDetailView<Object>
 
- 
onBeforeShow
- 
onAfterSave
- 
setupEntityToEditDescription copied from class:StandardDetailViewInvoked when the view is opened by navigation.- Overrides:
- setupEntityToEditin class- StandardDetailView<Object>
- Parameters:
- serializedEntityId- serialized id of the edited entity or- StandardDetailView.NEW_ENTITY_IDwhen creating new entity
 
- 
createNewItemByMetaClassprotected void createNewItemByMetaClass()
- 
setupEntityToEditDescription 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 class- StandardDetailView<Object>
- Parameters:
- entityToEdit- entity instance to edit. Can be a new instance when the entity is being created, see- EntityStates.isNew(Object).
 
- 
initMainContainer
- 
getRouteParamName- Overrides:
- getRouteParamNamein class- StandardDetailView<Object>
 
- 
getEditedEntityContainer- Overrides:
- getEditedEntityContainerin class- StandardDetailView<Object>
 
- 
getPageTitle- Specified by:
- getPageTitlein interface- com.vaadin.flow.router.HasDynamicTitle
- Overrides:
- getPageTitlein class- View<ViewLayout>
 
- 
createContentprotected void createContent()
- 
onSelectedTabChangeprotected void onSelectedTabChange(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent selectedChangeEvent) 
- 
addDataGridCreates a dataGrid for the entities in ONE_TO_MANY or MANY_TO_MANY relation with the current one
- 
createDataGridContainerprotected CollectionContainer createDataGridContainer(InstanceContainer parent, MetaProperty childMeta, MetaClass meta) 
- 
getPropertyTitle
- 
createButtonsPanelprotected com.vaadin.flow.component.orderedlayout.HorizontalLayout createButtonsPanel(DataGrid<?> dataGrid, MetaProperty metaProperty, CollectionContainer dataGridContainer) 
- 
addButton
- 
createAddAction
- 
createButton
- 
createCreateAction
- 
editButtonprotected JmixButton editButton(DataGrid<?> dataGrid, MetaProperty metaProperty, CollectionContainer dataGridContainer) 
- 
createEditActionprotected EditAction createEditAction(DataGrid<?> dataGrid, MetaProperty metaProperty, CollectionContainer dataGridContainer) 
- 
removeButton
- 
createRemoveActionprotected SecuredListDataComponentAction createRemoveAction(DataGrid<?> dataGrid, MetaProperty metaProperty) Creates either Remove or Exclude action depending on property type
- 
addComponentBeforeDetailActionsprotected void addComponentBeforeDetailActions(com.vaadin.flow.component.Component component) 
- 
setMetadataClassName
- 
setMetadataId
- 
setParentDataContext
- 
setParentProperty
- 
setParentDataContainer
 
-