Class CategoryAttributesDetailView
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<CategoryAttribute>
io.jmix.dynattrflowui.view.categoryattr.CategoryAttributesDetailView
- 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<CategoryAttribute>,HasEditedEntity<CategoryAttribute>,ReadOnlyAwareView,ReadOnlyTracker,SupportEntityLock<CategoryAttribute>,Serializable
@ViewController("dynat_CategoryAttribute.detail")
@ViewDescriptor("category-attributes-detail-view.xml")
@Route(value="dynat/category/:categoryId/attributes/:id",
layout=DefaultMainViewParent.class)
@DialogMode(minWidth="60em",
resizable=true)
public class CategoryAttributesDetailView
extends StandardDetailView<CategoryAttribute>
- 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.RestoreComponentsStateEventNested classes/interfaces inherited from interface io.jmix.flowui.view.ReadOnlyTracker
ReadOnlyTracker.ReadOnlyChangeEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessManagerstatic final Stringprotected InstanceContainer<CategoryAttribute>protected TypedTextField<String>protected static final Stringprotected static final Stringprotected InstanceContainer<CategoryAttributeConfiguration>protected CorePropertiesprotected static final Stringprotected DataComponentsprotected DataManagerprotected JmixComboBox<AttributeType>protected DatatypeRegistryprotected static final Stringprotected JmixComboBox<Boolean>protected TypedDateTimePicker<Date>protected TypedDatePicker<Date>protected TypedTextField<BigDecimal>protected JmixValuePicker<Object>protected JmixComboBox<String>protected TypedTextField<String>protected JmixMultiSelectComboBoxPicker<CategoryAttribute>protected ValueClearAction<String>protected MultiValueSelectAction<String>protected Dialogsprotected DialogWindowsprotected DynAttrFacetInfoprotected DynAttrMetadataprotected DynAttrUiHelperprotected JmixButtonprotected static final Stringprotected JmixComboBox<String>protected EntityStatesprotected FetchPlanRepositoryprotected static final com.google.common.collect.Multimap<AttributeType,String> protected FormatStringsRegistryprotected booleanprotected CodeEditorprotected AttributeLocalizationComponentprotected static final Stringprotected JmixCheckboxprotected static final Stringprotected TypedTextField<BigDecimal>protected Messagesprotected MessageToolsprotected Metadataprotected MetadataToolsprotected TypedTextField<BigDecimal>protected MsgBundleToolsprotected static final Stringprotected Notificationsprotected com.vaadin.flow.component.formlayout.FormLayoutprotected CodeEditorprotected JmixComboBox<OptionsLoaderType>protected UUIDprotected CodeEditorprotected ReferenceToEntitySupportprotected JmixComboBox<String>protected static final Set<AttributeType>protected JmixTabSheetprotected List<TargetViewComponent>protected CollectionContainer<TargetViewComponent>protected CollectionLoader<TargetViewComponent>protected UiComponentsprotected CodeEditorprotected ViewRegistryprotected Viewsprotected ViewSupportprotected CodeEditorFields 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 voidaddKnownTargetView(String viewId) protected voidattachHelperForSuffix(CodeEditor codeEditor, com.vaadin.flow.component.Component componentSuffix) voidbeforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) protected voidprotected voidprotected intcompareNumbers(AttributeType type, Number first, Number second) protected JmixComboBox<String>protected voiddependsOnAttributesFieldValidator(Collection<CategoryAttribute> categoryAttributes) protected List<CategoryAttribute>protected Map<AttributeType,String> protected Map<OptionsLoaderType,String> protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected booleanprotected Categoryprotected voidprotected voidprotected voidonAfterShow(View.BeforeShowEvent event) protected voidonCategoryAttributeDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<CategoryAttribute> event) protected voidonConfigurationDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<CategoryAttributeConfiguration> event) voidprotected voidonDefaultEntityIdFieldValueChange(com.vaadin.flow.component.HasValue.ValueChangeEvent<Object> event) protected voidonEditEnumerationBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected voidonInit(View.InitEvent event) voidprotected voidvoidonScreenFieldValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<String>, String> event) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprocessBeforeEnterInternal(com.vaadin.flow.router.BeforeEnterEvent event) CAUTION: for internal use only.protected voidprotected voidprotected voidprotected voidprotected voidprotected voidsetupEntityToEdit(CategoryAttribute entityToEdit) Invoked when the view is opened in dialog window or when the view is opened by navigation andStandardDetailView.setEntityToEdit(Object)method is called inAfterViewNavigationEventhandler.protected voidprotected voidprotected <T> voidsetValueIfAbsentInItems(JmixComboBox<T> comboBox, T value) protected voidtargetComponentItemUpdater(JmixComboBox<String> comboBox, TargetViewComponent item) protected List<TargetViewComponent>targetScreensDlLoadDelegate(LoadContext<TargetViewComponent> loadContext) protected com.vaadin.flow.data.renderer.Renderer<TargetViewComponent>protected com.vaadin.flow.data.renderer.Renderer<TargetViewComponent>protected voidtargetViewItemUpdater(JmixComboBox<String> comboBox, TargetViewComponent item) protected ValidationErrorsvalidateEnumeration(String enumeration, String defaultValue) protected ValidationErrorsvalidateNumbers(AttributeType type, Number minNumber, Number maxNumber, Number defaultNumber) protected voidvalidateUniqueStringOnAttribute(String value, Function<CategoryAttribute, String> mapper, String messageKey) Methods inherited from class io.jmix.flowui.view.StandardDetailView
addAfterSaveListener, addBeforeSaveListener, addInitEntityListener, addReadOnlyStateChangeListener, addValidationEventListener, clearChanges, closeWithDiscard, closeWithSave, findEntityId, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getEditedEntityOrNull, getLockStatus, getRouteParamName, getSaveNotificationText, hasUnsavedChanges, initExistingEntity, initNewEntity, isCrossFieldValidationEnabled, isReadOnly, isReloadEdited, isReloadSaved, isSaveActionPerformed, isShowSaveNotification, isShowValidationErrors, onDetachInternal, preventUnsavedChanges, save, setCrossFieldValidationEnabled, setEntityToEdit, setReadOnly, setReloadEdited, setReloadSaved, setShowSaveNotification, setShowValidationErrors, setupEntityToEdit, setupEntityToEdit, validateViewMethods inherited from class io.jmix.flowui.view.StandardView
initContentMethods 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, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onAttachInternal, onDetach, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setMeterRegistry, setPageTitle, 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
-
CATEGORY_ID_ROUTE_PARAMETER
- See Also:
-
DATA_TYPE_PROPERTY
- See Also:
-
DEFAULT_DATE_IS_CURRENT_PROPERTY
- See Also:
-
ENTITY_CLASS_PROPERTY
- See Also:
-
LOOKUP_PROPERTY
- See Also:
-
NAME_PROPERTY
- See Also:
-
MAIN_TAB_NAME
- See Also:
-
CONFIGURATION_NUMBER_FORMAT_PATTERN_PROPERTY
- See Also:
-
CONFIGURATION_OPTIONS_LOADER_TYPE_PROPERTY
- See Also:
-
FIELDS_VISIBLE_FOR_TYPES
protected static final com.google.common.collect.Multimap<AttributeType,String> FIELDS_VISIBLE_FOR_TYPES -
SUPPORTED_OPTIONS_TYPES
-
coreProperties
-
metadataTools
-
messageTools
-
metadata
-
dataManager
-
dynAttrFacetInfo
-
referenceToEntitySupport
-
fetchPlanRepository
-
uiComponents
-
messages
-
dialogWindows
-
dialogs
-
notifications
-
viewSupport
-
views
-
viewRegistry
-
dynAttrMetadata
-
datatypeRegistry
-
formatStringsRegistry
-
dataComponents
-
msgBundleTools
-
accessManager
-
dynAttrUiHelper
-
entityStates
-
lookupField
-
defaultDateField
-
defaultDateWithoutTimeField
-
optionalAttributeForm
-
dataTypeField
-
entityClassField
-
screenField
-
defaultBooleanField
-
defaultEnumField
-
optionsLoaderTypeField
-
defaultEntityIdField
-
validationScriptField
-
optionsLoaderScriptField
-
joinClauseField
-
whereClauseField
-
recalculationScriptField
-
tabSheet
-
codeField
-
defaultStringField
-
defaultDecimalField
-
minDecimalField
-
maxDecimalField
-
dependsOnAttributesField
-
targetScreensDc
-
configurationDc
-
targetScreensDl
-
categoryAttributeDc
-
dependsOnAttributesFieldClear
@ViewComponent("dependsOnAttributesField.clear") protected ValueClearAction<String> dependsOnAttributesFieldClear -
dependsOnAttributesFieldSelect
@ViewComponent("dependsOnAttributesField.select") protected MultiValueSelectAction<String> dependsOnAttributesFieldSelect -
editEnumerationBtn
-
isRefreshing
protected boolean isRefreshing -
localizationFragment
-
defaultEnumValues
-
targetScreens
-
parentCategoryUuid
-
-
Constructor Details
-
CategoryAttributesDetailView
public CategoryAttributesDetailView()
-
-
Method Details
-
onInit
-
beforeEnter
public void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) - Specified by:
beforeEnterin interfacecom.vaadin.flow.router.internal.BeforeEnterHandler- Overrides:
beforeEnterin classStandardDetailView<CategoryAttribute>
-
processBeforeEnterInternal
protected void processBeforeEnterInternal(com.vaadin.flow.router.BeforeEnterEvent event) Description copied from class:ViewCAUTION: for internal use only.- Overrides:
processBeforeEnterInternalin classStandardDetailView<CategoryAttribute>- Parameters:
event- before navigation event with event details
-
setupEntityToEdit
Description copied from class:StandardDetailViewInvoked when the view is opened in dialog window or when the view is opened by navigation andStandardDetailView.setEntityToEdit(Object)method is called inAfterViewNavigationEventhandler.- Overrides:
setupEntityToEditin classStandardDetailView<CategoryAttribute>- Parameters:
entityToEdit- entity instance to edit. Can be a new instance when the entity is being created, seeEntityStates.isNew(Object).
-
onInitEntity
-
loadParentCategory
-
getPageTitle
- Specified by:
getPageTitlein interfacecom.vaadin.flow.router.HasDynamicTitle- Overrides:
getPageTitlein classView<ViewLayout>
-
initDefaultEnumField
protected void initDefaultEnumField() -
initDefaultEnumFieldValue
protected void initDefaultEnumFieldValue() -
getEnumValues
-
onAfterShow
-
initDefaultEntityFieldId
protected void initDefaultEntityFieldId() -
isDataTypeEnum
protected boolean isDataTypeEnum() -
nameFieldUniqueNameValidator
-
codeFieldUniqueNameValidator
-
validateUniqueStringOnAttribute
protected void validateUniqueStringOnAttribute(String value, Function<CategoryAttribute, String> mapper, String messageKey) -
onDefaultEntityIdFieldValueChange
protected void onDefaultEntityIdFieldValueChange(com.vaadin.flow.component.HasValue.ValueChangeEvent<Object> event) -
onCategoryAttributeDcItemPropertyChange
@Subscribe(id="categoryAttributeDc", target=DATA_CONTAINER) protected void onCategoryAttributeDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<CategoryAttribute> event) -
onConfigurationDcItemPropertyChange
@Subscribe(id="configurationDc", target=DATA_CONTAINER) protected void onConfigurationDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<CategoryAttributeConfiguration> event) -
refreshOnce
protected void refreshOnce() -
onEditEnumerationBtnClick
@Subscribe("editEnumerationBtn") protected void onEditEnumerationBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) -
clearEnumValueIfCurrentItemAbsentOnEnum
protected void clearEnumValueIfCurrentItemAbsentOnEnum() -
targetScreensDlLoadDelegate
@Install(to="targetScreensDl", target=DATA_LOADER) protected List<TargetViewComponent> targetScreensDlLoadDelegate(LoadContext<TargetViewComponent> loadContext) -
onTargetScreensTableCreate
@Subscribe("targetScreensTable.create") protected void onTargetScreensTableCreate(ActionPerformedEvent event) -
onTargetScreensTableAddAllViews
@Subscribe("targetScreensTable.addAllViews") protected void onTargetScreensTableAddAllViews(ActionPerformedEvent event) -
addKnownTargetView
-
dependsOnAttributesFieldValidator
@Install(to="dependsOnAttributesField", subject="validator") protected void dependsOnAttributesFieldValidator(Collection<CategoryAttribute> categoryAttributes) -
targetScreensTableViewRenderer
@Supply(to="targetScreensTable.view", subject="renderer") protected com.vaadin.flow.data.renderer.Renderer<TargetViewComponent> targetScreensTableViewRenderer() -
targetScreensTableComponentRenderer
@Supply(to="targetScreensTable.component", subject="renderer") protected com.vaadin.flow.data.renderer.Renderer<TargetViewComponent> targetScreensTableComponentRenderer() -
createComboBox
-
targetViewItemUpdater
-
targetComponentItemUpdater
-
setValueIfAbsentInItems
-
initAttributeForm
protected void initAttributeForm() -
attachHelperForSuffix
protected void attachHelperForSuffix(CodeEditor codeEditor, com.vaadin.flow.component.Component componentSuffix) -
initCalculatedValuesAndOptionsForm
protected void initCalculatedValuesAndOptionsForm() -
loadTargetViews
protected void loadTargetViews() -
initCategoryAttributeConfigurationField
protected void initCategoryAttributeConfigurationField() -
initLocalizationTab
protected void initLocalizationTab() -
initDependsOnAttributesField
protected void initDependsOnAttributesField() -
setupNumberFormat
protected void setupNumberFormat() -
refreshAttributesUI
protected void refreshAttributesUI() -
onScreenFieldValueChange
@Subscribe("screenField") public void onScreenFieldValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<String>, String> event) -
onDefaultEntityIdFieldLookup
@Subscribe("defaultEntityIdField.lookup") public void onDefaultEntityIdFieldLookup(ActionPerformedEvent event) -
setupFieldsLock
protected void setupFieldsLock() -
refreshAttributesValues
protected void refreshAttributesValues() -
refreshDefaultEntityIdFieldValue
protected void refreshDefaultEntityIdFieldValue() -
refreshCodeFieldValue
protected void refreshCodeFieldValue() -
getBooleanOptions
-
getDataTypeOptions
-
getEntityOptions
-
getLoaderOptions
-
getAttributesOptions
-
onValidation
-
validateEnumeration
-
validateNumbers
protected ValidationErrors validateNumbers(AttributeType type, Number minNumber, Number maxNumber, Number defaultNumber) -
compareNumbers
-
onPreCommit
-
preCommitOrderNo
protected void preCommitOrderNo() -
preCommitLocalizationFields
protected void preCommitLocalizationFields() -
preCommitTargetViewsField
protected void preCommitTargetViewsField() -
preCommitConfiguration
protected void preCommitConfiguration()
-