Class CategoryDetailView
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<Category>
io.jmix.dynattrflowui.view.category.CategoryDetailView
- 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<Category>,ReadOnlyAwareView,Serializable
@Route(value="dynat/category/:id",
layout=DefaultMainViewParent.class)
@ViewController("dynat_CategoryView.detail")
@ViewDescriptor("category-detail-view.xml")
@DialogMode(width="50em",
maxWidth="80%")
public class CategoryDetailView
extends StandardDetailView<Category>
- 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.ValidationEventNested 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 AccessManagerprotected CollectionContainer<CategoryAttribute>protected DataGrid<CategoryAttribute>protected InstanceContainer<Category>protected CorePropertiesprotected CurrentAuthenticationprotected DataComponentsprotected DataManagerprotected DialogWindowsprotected DynAttrUiHelperprotected Actionprotected JmixComboBox<MetaClass>protected ExtendedEntitiesprotected FetchPlanRepositoryprotected FetchPlansprotected FormatStringsRegistryprotected AttributeLocalizationComponentprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected Messagesprotected MessageToolsprotected Metadataprotected MetadataToolsprotected Actionprotected com.vaadin.flow.component.button.Buttonprotected Actionprotected com.vaadin.flow.component.button.Buttonprotected MsgBundleToolsprotected ReferenceToEntitySupportprotected Actionprotected JmixTabSheetprotected UiComponentsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected com.vaadin.flow.component.Textprotected voidcategoryAttrsGridDataTypeUpdater(com.vaadin.flow.component.Text text, CategoryAttribute categoryAttribute) protected com.vaadin.flow.component.html.Spanprotected voidcategoryAttrsGridDefaultValueColumnUpdater(com.vaadin.flow.component.html.Span defaultValueLabel, CategoryAttribute attribute) protected voidprotected voidprotected com.vaadin.flow.data.renderer.Renderer<CategoryAttribute>protected com.vaadin.flow.data.renderer.Renderer<CategoryAttribute>protected CategoryAttributegetNextAttribute(Integer orderNo) protected CategoryAttributegetPrevAttribute(Integer orderNo) protected voidprotected voidprotected voidonBeforeShow(View.BeforeShowEvent event) protected voidprotected voidprotected voidonCategoryAttrsGridSelection(com.vaadin.flow.data.selection.SelectionEvent<DataGrid<CategoryAttribute>, CategoryAttribute> event) protected voidonCategoryAttrsGridSelectionEvent(com.vaadin.flow.data.selection.SelectionEvent<DataGrid<CategoryAttribute>, CategoryAttribute> event) protected voidonEntityTypeFieldValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<MetaClass>, MetaClass> event) voidonInitEvent(View.InitEvent event) protected voidonIsDefaultFieldValueChange(com.vaadin.flow.component.HasValue.ValueChangeEvent<Boolean> event) protected voidprotected voidrefreshMoveButtonsEnabled(CategoryAttribute categoryAttribute) voidsetCategory(Category category) protected voidprotected voidMethods inherited from class io.jmix.flowui.view.StandardDetailView
addAfterSaveListener, addBeforeSaveListener, addInitEntityListener, addValidationEventListener, beforeEnter, clearChanges, closeWithDiscard, closeWithSave, findEntityId, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getEditedEntityOrNull, getLockStatus, getRouteParamName, getSaveNotificationText, hasUnsavedChanges, initExistingEntity, initNewEntity, isCrossFieldValidationEnabled, isReadOnly, isReloadEdited, isReloadSaved, isSaveActionPerformed, isShowSaveNotification, isShowValidationErrors, onDetachInternal, save, setCrossFieldValidationEnabled, setEntityToEdit, setReadOnly, setReloadEdited, setReloadSaved, setShowSaveNotification, setShowValidationErrors, setupEntityToEdit, setupEntityToEdit, setupEntityToEdit, validateViewMethods inherited from class io.jmix.flowui.view.StandardView
initContentMethods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, addRestoreComponentsStateEventListener, afterNavigation, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getEventBus, getId, getPageTitle, 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.Composite
getChildren, getContent, getElementMethods 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, setVisibleMethods 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, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
metadataTools
-
messageTools
-
dataManager
-
coreProperties
-
extendedEntities
-
fetchPlans
-
metadata
-
accessManager
-
messages
-
currentAuthentication
-
referenceToEntitySupport
-
fetchPlanRepository
-
uiComponents
-
formatStringsRegistry
-
dialogWindows
-
dynAttrUiHelper
-
dataComponents
-
msgBundleTools
-
categoryDc
-
categoryAttributesDc
-
entityTypeField
-
tabSheet
-
localizationTabContainer
@ViewComponent protected com.vaadin.flow.component.orderedlayout.VerticalLayout localizationTabContainer -
categoryAttrsGrid
-
moveUpBtn
-
moveDownBtn
-
editAction
-
removeAction
-
moveUpAction
-
moveDownAction
-
localizationComponent
-
-
Constructor Details
-
CategoryDetailView
public CategoryDetailView()
-
-
Method Details
-
onInitEvent
-
onBeforeShow
-
setupFieldsLock
protected void setupFieldsLock() -
onEntityTypeFieldValueChange
@Subscribe("entityTypeField") protected void onEntityTypeFieldValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<MetaClass>, MetaClass> event) -
onIsDefaultFieldValueChange
@Subscribe("isDefaultField") protected void onIsDefaultFieldValueChange(com.vaadin.flow.component.HasValue.ValueChangeEvent<Boolean> event) -
initEntityTypeField
protected void initEntityTypeField() -
initLocalizationTab
protected void initLocalizationTab() -
createCategoryAttrsGridDefaultValueRenderer
@Supply(to="categoryAttrsGrid.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) -
createCategoryAttrsGridDataTypeRenderer
@Supply(to="categoryAttrsGrid.dataType", subject="renderer") protected com.vaadin.flow.data.renderer.Renderer<CategoryAttribute> createCategoryAttrsGridDataTypeRenderer() -
categoryAttrsGridDataTypeComponent
protected com.vaadin.flow.component.Text categoryAttrsGridDataTypeComponent() -
categoryAttrsGridDataTypeUpdater
protected void categoryAttrsGridDataTypeUpdater(com.vaadin.flow.component.Text text, CategoryAttribute categoryAttribute) -
categoryAttrsGridCreateListener
@Subscribe("categoryAttrsGrid.create") protected void categoryAttrsGridCreateListener(ActionPerformedEvent event) -
categoryAttrsGridEditListener
@Subscribe("categoryAttrsGrid.edit") protected void categoryAttrsGridEditListener(ActionPerformedEvent event) -
categoryAttrsGridRemoveListener
@Subscribe("categoryAttrsGrid.remove") protected void categoryAttrsGridRemoveListener(ActionPerformedEvent event) -
onCategoryAttrsGridSelection
protected void onCategoryAttrsGridSelection(com.vaadin.flow.data.selection.SelectionEvent<DataGrid<CategoryAttribute>, CategoryAttribute> event) -
onCategoryAttrsGridSelectionEvent
@Subscribe("categoryAttrsGrid") protected void onCategoryAttrsGridSelectionEvent(com.vaadin.flow.data.selection.SelectionEvent<DataGrid<CategoryAttribute>, CategoryAttribute> event) -
onCategoryAttrsGridMoveUp
@Subscribe("categoryAttrsGrid.moveUp") protected void onCategoryAttrsGridMoveUp(ActionPerformedEvent event) -
onCategoryAttrsGridMoveDown
@Subscribe("categoryAttrsGrid.moveDown") protected void onCategoryAttrsGridMoveDown(ActionPerformedEvent event) -
getPrevAttribute
-
getNextAttribute
-
sortCategoryAttrsGridByOrderNo
protected void sortCategoryAttrsGridByOrderNo() -
refreshMoveButtonsEnabled
-
setCategory
-
onPreCommit
-
getCategory
-