Class DataModelListView
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.datatoolsflowui.view.datamodel.DataModelListView
- 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,Serializable
@Route(value="datatl/data-model",
layout=DefaultMainViewParent.class)
@ViewController(id="datatl_dataModelListView")
@ViewDescriptor(path="data-model-list-view.xml")
@DialogMode(width="50em")
public class DataModelListView
extends StandardView
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected static final recordNested 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 DataGrid<AttributeModel> protected CollectionLoader<AttributeModel> protected com.vaadin.flow.component.html.Spanprotected DataModelDiagramViewSupportprotected DataModelProviderprotected DataModelRegistryprotected JmixButtonprotected DiagramEngineprotected TypedTextField<String> protected com.vaadin.flow.component.html.Spanprotected DataGrid<EntityModel> protected CollectionContainer<EntityModel> protected CollectionLoader<EntityModel> protected static final Stringprotected Iconsprotected Notificationsprotected static final Stringprotected static final Stringprotected JmixCheckboxprotected UrlParamSerializerprotected UrlQueryParametersFacet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<AttributeModel> attributeModelsDlLoadDelegate(LoadContext<AttributeModel> loadContext) protected com.vaadin.flow.component.ComponentcreateCheckboxIconByAttributeValue(Boolean attributeValue) protected List<EntityModel> entityModelsDlLoadDelegate(LoadContext<EntityModel> loadContext) protected booleanfilterByRegexp(EntityModel entityModel, String filterValue) protected booleanfilterByString(EntityModel entityModel, String filterValue) protected byte[]generateDiagram(List<EntityModel> models) protected voidprotected voidprotected voidprotected voidHides thedynamiccolumns unless a module contributes entities or attributes that JPA metadata cannot describe.protected com.vaadin.flow.data.renderer.Renderer<AttributeModel> voidonDiagramButtonClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) voidonEntityFilterTypedValueChange(SupportsTypedValue.TypedValueChangeEvent<TypedTextField<String>, String> event) voidonEntityModelsDataGridSelection(com.vaadin.flow.data.selection.SelectionEvent<DataGrid<EntityModel>, EntityModel> event) voidonInit(View.InitEvent event) voidonShowSystemCheckBoxComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixCheckbox, Boolean> event) protected voidsetColumnVisible(DataGrid<?> dataGrid, String columnKey, boolean visible) Methods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addApplicationListeners, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, addRestoreComponentsStateEventListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, configureDialogWindowFooter, configureDialogWindowHeader, getApplicationContext, getEventBus, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onAttachInternal, onDetach, onDetachInternal, processBeforeEnterInternal, 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
-
Field Details
-
REGEXP_PREFIX
- See Also:
-
FILTER_URL_PARAM
- See Also:
-
SHOW_SYSTEM_URL_PARAM
- See Also:
-
entityModelsDataGrid
-
attributeModelsDataGrid
-
showSystemCheckBox
-
entityFilter
-
entityModelCount
-
attributesCount
-
diagramButton
-
entityModelsDc
-
entityModelsDl
-
attributeModelsDl
-
urlQueryParametersFacet
-
icons
-
diagramEngine
-
dataModelDiagramViewSupport
-
urlParamSerializer
-
notifications
-
dataModelRegistry
-
dataModelProvider
-
dataStoreNames
-
-
Constructor Details
-
DataModelListView
public DataModelListView()
-
-
Method Details
-
onInit
-
initDynamicColumnVisibility
protected void initDynamicColumnVisibility()Hides thedynamiccolumns unless a module contributes entities or attributes that JPA metadata cannot describe. With no contributor every entity and attribute is a static one, and the column would be a constant. -
setColumnVisible
-
initDiagramButtonAvailability
protected void initDiagramButtonAvailability() -
initDataStoreNames
protected void initDataStoreNames() -
initDataStoreColumnVisibility
protected void initDataStoreColumnVisibility() -
entityModelsDlLoadDelegate
@Install(to="entityModelsDl", target=DATA_LOADER) protected List<EntityModel> entityModelsDlLoadDelegate(LoadContext<EntityModel> loadContext) -
filterByRegexp
-
filterByString
-
attributeModelsDlLoadDelegate
@Install(to="attributeModelsDl", target=DATA_LOADER) protected List<AttributeModel> attributeModelsDlLoadDelegate(LoadContext<AttributeModel> loadContext) -
onEntityFilterTypedValueChange
@Subscribe("entityFilter") public void onEntityFilterTypedValueChange(SupportsTypedValue.TypedValueChangeEvent<TypedTextField<String>, String> event) -
onShowSystemCheckBoxComponentValueChange
@Subscribe("showSystemCheckBox") public void onShowSystemCheckBoxComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixCheckbox, Boolean> event) -
onEntityModelsDataGridSelection
@Subscribe("entityModelsDataGrid") public void onEntityModelsDataGridSelection(com.vaadin.flow.data.selection.SelectionEvent<DataGrid<EntityModel>, EntityModel> event) -
onDiagramButtonClick
@Subscribe(id="diagramButton", subject="clickListener") public void onDiagramButtonClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) -
generateDiagram
-
loggedEntityTableAutoRenderer
@Supply(to="attributeModelsDataGrid.isMandatory", subject="renderer") protected com.vaadin.flow.data.renderer.Renderer<AttributeModel> loggedEntityTableAutoRenderer() -
createCheckboxIconByAttributeValue
protected com.vaadin.flow.component.Component createCheckboxIconByAttributeValue(Boolean attributeValue)
-