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.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
,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.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
-
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
setEntityToEdit
(Object entity) Sets entity instance to the view.void
setMetadataClassName
(String metadataClassName) void
setMetadataId
(String metadataId) void
setParentDataContainer
(CollectionContainer<Object> dataContainer) void
setParentDataContext
(DataContext parentDataContext) void
setParentProperty
(String parentProperty) protected void
setupEntityToEdit
(String serializedEntityId) Methods inherited from class io.jmix.flowui.view.StandardDetailView
addAfterSaveListener, addBeforeSaveListener, addInitEntityListener, addValidationEventListener, closeWithDiscard, closeWithSave, entityCanBeLoaded, findEntityId, getEditedEntity, getEditedEntityLoader, getPessimisticLockStatus, hasUnsavedChanges, initExistingEntity, initNewEntity, isCrossFieldValidationEnabled, isReadOnly, isSaveActionPerformed, isShowSaveNotification, isShowValidationErrors, save, setCrossFieldValidationEnabled, setReadOnly, setShowSaveNotification, setShowValidationErrors, setupEntityToEdit, setupEntityToEdit
Methods inherited from class io.jmix.flowui.view.StandardView
initContent
Methods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addReadyListener, afterNavigation, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, onDetach, setApplicationContext, setId, setViewActions, setViewData, setViewFacets
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, onAttach, onEnabledStateChanged, 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
-
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
- Overrides:
setupEntityToEdit
in classStandardDetailView<Object>
-
createNewItemByMetaClass
protected void createNewItemByMetaClass() -
setEntityToEdit
Description copied from interface:DetailView
Sets entity instance to the view.- Specified by:
setEntityToEdit
in interfaceDetailView<Object>
- Overrides:
setEntityToEdit
in classStandardDetailView<Object>
- Parameters:
entity
- entity to edit
-
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
-