Class CategoryListView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
- 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
,LookupView<Category>
,MultiSelectLookupView
,Serializable
@Route(value="dynat/category",
layout=DefaultMainViewParent.class)
@ViewController("dynat_CategoryView.list")
@ViewDescriptor("category-list-view.xml")
@DialogMode(width="47.5em")
public class CategoryListView
extends StandardListView<Category>
- See Also:
-
Nested Class Summary
Nested 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
Nested classes/interfaces inherited from interface io.jmix.flowui.view.LookupView
LookupView.ValidationContext<E>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessManager
protected com.vaadin.flow.component.button.Button
protected CollectionContainer<CategoryAttribute>
protected DataGrid<CategoryAttribute>
protected CollectionContainer<Category>
protected CollectionLoader<Category>
protected Action
protected CurrentAuthentication
protected DataContext
protected DataManager
protected Downloader
protected DynAttrMetadata
protected DynAttrUiHelper
protected EntityImportExport
protected EntityImportPlans
protected FetchPlanRepository
protected FetchPlans
protected FormatStringsRegistry
protected FileUploadField
protected Messages
protected MessageTools
protected Metadata
protected MetadataTools
protected Action
protected Action
protected Notifications
protected ReferenceToEntitySupport
protected RouteSupport
static final String
protected UUID
protected UiComponents
protected UrlParamSerializer
Fields inherited from class io.jmix.flowui.view.StandardListView
DISCARD_ACTION_DEFAULT_ID, LOOKUP_ACTIONS_LAYOUT_DEFAULT_ID, SELECT_ACTION_DEFAULT_ID, selectionHandler, selectionValidator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.router.RouteParameters
protected com.vaadin.flow.router.RouteParameters
void
beforeEnter
(com.vaadin.flow.router.BeforeEnterEvent event) protected FetchPlan
protected com.vaadin.flow.data.renderer.Renderer<Category>
protected boolean
protected com.vaadin.flow.component.html.Span
protected void
categoryAttrsGridDataTypeUpdater
(com.vaadin.flow.component.html.Span text, CategoryAttribute categoryAttribute) protected com.vaadin.flow.component.html.Span
protected void
categoryAttrsGridDefaultValueColumnUpdater
(com.vaadin.flow.component.html.Span defaultValueLabel, CategoryAttribute attribute) protected com.vaadin.flow.data.renderer.Renderer<CategoryAttribute>
protected boolean
protected boolean
protected com.vaadin.flow.data.renderer.Renderer<CategoryAttribute>
protected boolean
protected com.vaadin.flow.data.renderer.Renderer<CategoryAttribute>
protected com.vaadin.flow.data.renderer.Renderer<CategoryAttribute>
protected com.vaadin.flow.component.icon.Icon
createCheckboxIconByAttributeValue
(Boolean attributeValue) protected EntityImportPlan
protected void
export
(DownloadFormat downloadFormat) protected CategoryAttribute
getNextAttribute
(Integer orderNo) protected CategoryAttribute
getPrevAttribute
(Integer orderNo) protected void
onBeforeShow
(View.BeforeShowEvent event) protected void
protected void
onCategoriesGridSelectionEvent
(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<Category>, Category> event) protected void
protected void
protected void
onCategoryGridSelectionChange
(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<Category>, Category> event) void
void
void
protected void
onReady
(View.ReadyEvent event) protected void
processBeforeEnterInternal
(com.vaadin.flow.router.BeforeEnterEvent event) CAUTION: for internal use only.protected void
processQueryParameters
(com.vaadin.flow.router.BeforeEnterEvent event) protected void
protected void
setSelectedCategory
(String categoryUUid) protected void
protected void
Methods inherited from class io.jmix.flowui.view.StandardListView
closeWithDiscard, doSelect, findLookupComponent, getDiscardAction, getLookupActionsLayout, getLookupComponent, getSelectAction, getSelectionHandler, getSelectionValidator, handleSelection, lookupEnterPress, setLookupComponentMultiSelect, setSelectionHandler, setSelectionValidator, setupLookupComponent, setupSaveShortcut, validateSelectedItems
Methods inherited from class io.jmix.flowui.view.StandardView
initContent
Methods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addApplicationListeners, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, addRestoreComponentsStateEventListener, afterNavigation, beforeLeave, close, close, closeWithDefaultAction, configureDialogWindowFooter, configureDialogWindowHeader, getApplicationContext, getEventBus, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onAttachInternal, onDetach, onDetachInternal, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setMeterRegistry, setPageTitle, 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, 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
-
SELECTED_CATEGORY_QUERY_PARAMETER
- See Also:
-
notifications
-
messages
-
messageTools
-
metadataTools
-
dataManager
-
metadata
-
dynAttrMetadata
-
entityImportExport
-
fetchPlans
-
entityImportPlans
-
downloader
-
accessManager
-
uiComponents
-
urlParamSerializer
-
routeSupport
-
dynAttrUiHelper
-
currentAuthentication
-
referenceToEntitySupport
-
fetchPlanRepository
-
formatStringsRegistry
-
categoriesGrid
-
categoriesDc
-
categoriesDl
-
attributesTable
-
attributesDc
-
createAction
-
moveUpAction
-
moveDownAction
-
importField
-
applyChangesBtn
-
dataContext
-
selectedCategoryId
-
-
Constructor Details
-
CategoryListView
public CategoryListView()
-
-
Method Details
-
beforeEnter
public void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) - Specified by:
beforeEnter
in interfacecom.vaadin.flow.router.internal.BeforeEnterHandler
- Overrides:
beforeEnter
in classView<ViewLayout>
-
processBeforeEnterInternal
protected void processBeforeEnterInternal(com.vaadin.flow.router.BeforeEnterEvent event) Description copied from class:View
CAUTION: for internal use only.- Overrides:
processBeforeEnterInternal
in classView<ViewLayout>
- Parameters:
event
- before navigation event with event details
-
processQueryParameters
protected void processQueryParameters(com.vaadin.flow.router.BeforeEnterEvent event) -
setSelectedCategory
-
onBeforeShow
-
onReady
-
setupFieldsLock
protected void setupFieldsLock() -
setupSelectedCategory
protected void setupSelectedCategory() -
onCategoriesGridApplyChanges
@Subscribe("categoriesGrid.applyChanges") protected void onCategoriesGridApplyChanges(ActionPerformedEvent event) -
categoriesGridIsDefaultRenderer
-
categoryAttrsGridRequiredRenderer
@Supply(to="attributesTable.required", subject="renderer") protected com.vaadin.flow.data.renderer.Renderer<CategoryAttribute> categoryAttrsGridRequiredRenderer() -
categoryAttrsGridIsCollectionRenderer
@Supply(to="attributesTable.isCollection", subject="renderer") protected com.vaadin.flow.data.renderer.Renderer<CategoryAttribute> categoryAttrsGridIsCollectionRenderer() -
createCheckboxIconByAttributeValue
protected com.vaadin.flow.component.icon.Icon createCheckboxIconByAttributeValue(Boolean attributeValue) -
createCategoryAttrsGridDataTypeRenderer
@Supply(to="attributesTable.dataType", subject="renderer") protected com.vaadin.flow.data.renderer.Renderer<CategoryAttribute> createCategoryAttrsGridDataTypeRenderer() -
categoryAttrsGridDataTypeComponent
protected com.vaadin.flow.component.html.Span categoryAttrsGridDataTypeComponent() -
categoryAttrsGridDataTypeUpdater
protected void categoryAttrsGridDataTypeUpdater(com.vaadin.flow.component.html.Span text, CategoryAttribute categoryAttribute) -
createCategoryAttrsGridDefaultValueRenderer
@Supply(to="attributesTable.defaultValue", subject="renderer") protected com.vaadin.flow.data.renderer.Renderer<CategoryAttribute> createCategoryAttrsGridDefaultValueRenderer() -
categoryAttrsGridDefaultValueColumnComponent
protected com.vaadin.flow.component.html.Span categoryAttrsGridDefaultValueColumnComponent() -
categoryAttrsGridDefaultValueColumnUpdater
protected void categoryAttrsGridDefaultValueColumnUpdater(com.vaadin.flow.component.html.Span defaultValueLabel, CategoryAttribute attribute) -
onCategoryAttrsGridMoveUp
@Subscribe("attributesTable.moveUp") protected void onCategoryAttrsGridMoveUp(ActionPerformedEvent event) -
categoryAttrsGridMoveUpEnabledRule
-
onCategoryAttrsGridMoveDown
@Subscribe("attributesTable.moveDown") protected void onCategoryAttrsGridMoveDown(ActionPerformedEvent event) -
categoryAttrsGridMoveDownEnabledRule
-
checkOrderNoModificationPermissions
protected boolean checkOrderNoModificationPermissions() -
refreshMoveActionStates
protected void refreshMoveActionStates() -
getPrevAttribute
-
getNextAttribute
-
categoryAttrsGridCreateEnabledRule
-
onCategoriesGridSelectionEvent
@Subscribe("categoriesGrid") protected void onCategoriesGridSelectionEvent(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<Category>, Category> event) -
onCategoryGridSelectionChange
-
attributesTableCreateActionRouteParametersProvider
-
attributesTableEditActionRouteParametersProvider
-
onExportBtnExportJSON
@Subscribe("categoriesGrid.exportJSON") public void onExportBtnExportJSON(ActionPerformedEvent event) -
onExportBtnExportZIP
-
export
-
buildExportFetchPlan
-
onImportFieldFileUploadSucceed
@Subscribe("importField") public void onImportFieldFileUploadSucceed(FileUploadSucceededEvent<FileUploadField> event) -
createEntityImportPlan
-