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.ValidationEvent
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 AccessManager
protected Actions
protected static final String
static final String
protected InstanceContainer
protected DataComponents
protected DataContext
protected DataManager
protected EntityStates
protected Boolean
protected MessageBundle
protected MessageTools
protected MetaClass
protected Metadata
protected String
protected String
protected MetadataTools
protected CollectionContainer<Object>
protected DataContext
protected String
static final String
static final String
protected static final String
protected static final String
protected com.vaadin.flow.component.tabs.Tabs
protected HashMap<com.vaadin.flow.component.tabs.Tab,
com.vaadin.flow.component.Component> protected UiComponents
protected UrlParamSerializer
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected JmixButton
addButton
(DataGrid<?> dataGrid, MetaProperty metaProperty) protected void
addComponentBeforeDetailActions
(com.vaadin.flow.component.Component component) protected void
addDataGrid
(InstanceContainer parent, MetaProperty childMeta) Creates a dataGrid for the entities in ONE_TO_MANY or MANY_TO_MANY relation with the current onevoid
beforeEnter
(com.vaadin.flow.router.BeforeEnterEvent event) protected AddAction
createAddAction
(DataGrid<?> dataGrid, MetaProperty metaProperty) protected JmixButton
createButton
(DataGrid<?> dataGrid, MetaProperty metaProperty) protected com.vaadin.flow.component.orderedlayout.HorizontalLayout
createButtonsPanel
(DataGrid<?> dataGrid, MetaProperty metaProperty, CollectionContainer dataGridContainer) protected void
protected CreateAction
createCreateAction
(DataGrid<?> dataGrid, MetaProperty metaProperty) protected CollectionContainer
createDataGridContainer
(InstanceContainer parent, MetaProperty childMeta, MetaClass meta) protected EditAction
createEditAction
(DataGrid<?> dataGrid, MetaProperty metaProperty, CollectionContainer dataGridContainer) protected void
protected SecuredListDataComponentAction
createRemoveAction
(DataGrid<?> dataGrid, MetaProperty metaProperty) Creates either Remove or Exclude action depending on property typeprotected JmixButton
editButton
(DataGrid<?> dataGrid, MetaProperty metaProperty, CollectionContainer dataGridContainer) protected InstanceContainer
protected String
getPropertyTitle
(MetaClass metaClass, MetaProperty metaProperty) protected String
protected InstanceContainer
initMainContainer
(Object entity) protected void
void
onBeforeShow
(View.BeforeShowEvent event) void
onInit
(View.InitEvent event) protected void
onSelectedTabChange
(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent selectedChangeEvent) protected JmixButton
removeButton
(DataGrid<?> dataGrid, MetaProperty metaProperty) void
setMetadataClassName
(String metadataClassName) void
setMetadataId
(String metadataId) void
setParentDataContainer
(CollectionContainer<Object> dataContainer) void
setParentDataContext
(DataContext parentDataContext) void
setParentProperty
(String parentProperty) protected void
setupEntityToEdit
(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 inAfterViewNavigationEvent
handler.protected void
setupEntityToEdit
(String serializedEntityId) Invoked when the view is opened by navigation.Methods inherited from class io.jmix.flowui.view.StandardDetailView
addAfterSaveListener, 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, validateView
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, 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, unregisterBackNavigation
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
-
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:
beforeEnter
in interfacecom.vaadin.flow.router.internal.BeforeEnterHandler
- Overrides:
beforeEnter
in classStandardDetailView<Object>
-
onBeforeShow
-
onAfterSave
-
setupEntityToEdit
Description copied from class:StandardDetailView
Invoked when the view is opened by navigation.- Overrides:
setupEntityToEdit
in classStandardDetailView<Object>
- Parameters:
serializedEntityId
- serialized id of the edited entity orStandardDetailView.NEW_ENTITY_ID
when creating new entity
-
createNewItemByMetaClass
protected void createNewItemByMetaClass() -
setupEntityToEdit
Description copied from class:StandardDetailView
Invoked when the view is opened in dialog window or when the view is opened by navigation andStandardDetailView.setEntityToEdit(Object)
method is called inAfterViewNavigationEvent
handler.- Overrides:
setupEntityToEdit
in 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:
getRouteParamName
in classStandardDetailView<Object>
-
getEditedEntityContainer
- Overrides:
getEditedEntityContainer
in classStandardDetailView<Object>
-
getPageTitle
- Specified by:
getPageTitle
in interfacecom.vaadin.flow.router.HasDynamicTitle
- Overrides:
getPageTitle
in 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
-