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>,- ReadOnlyAwareView,- Serializable
@ViewController("dynat_CategoryAttribute.edit")
@ViewDescriptor("category-attributes-detail-view.xml")
@Route(value="dynat/category/:id/attributes/:id",
       layout=DefaultMainViewParent.class)
@DialogMode(minWidth="60em",
            maxWidth="80%",
            resizable=true)
public class CategoryAttributesDetailView
extends StandardDetailView<CategoryAttribute>
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class io.jmix.flowui.view.StandardDetailViewStandardDetailView.AfterSaveEvent, StandardDetailView.BeforeSaveEvent, StandardDetailView.InitEntityEvent<E>, StandardDetailView.SetupLockEvent, StandardDetailView.ValidationEventNested classes/interfaces inherited from class io.jmix.flowui.view.ViewView.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected AccessManagerprotected InstanceContainer<CategoryAttribute>protected TypedTextField<String>protected static final Stringprotected 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 Dialogsprotected DialogWindowsprotected DynAttrFacetInfoprotected DynAttrMetadataprotected DynAttrUiHelperprotected static final Stringprotected JmixComboBox<String>protected FetchPlanRepositoryprotected static final com.google.common.collect.Multimap<AttributeType,String> protected FormatStringsRegistryprotected 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 CodeEditorprotected ReferenceToEntitySupportprotected JmixComboBox<String>protected static final Set<AttributeType>protected JmixTabSheetprotected List<TargetViewComponent>protected CollectionContainer<TargetViewComponent>protected CollectionLoader<TargetViewComponent>protected DataGrid<TargetViewComponent>protected UiComponentsprotected CodeEditorprotected static final Stringprotected ViewRegistryprotected Viewsprotected ViewSupportprotected CodeEditorFields inherited from class io.jmix.flowui.view.StandardDetailViewDEFAULT_ROUTE_PARAM, LOCKED_BEFORE_REFRESH_ATTR_NAME, MODE_PARAM, MODE_READONLY, NEW_ENTITY_ID, READ_ONLY_BEFORE_REFRESH_ATTR_NAME, reloadSaved
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidattachHelperForSuffix(CodeEditor codeEditor, com.vaadin.flow.component.Component componentSuffix) protected voidprotected intcompareNumbers(AttributeType type, Number first, Number second) 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 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) protected voidvoidonScreenFieldValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<String>, String> event) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected List<TargetViewComponent>targetScreensDlLoadDelegate(LoadContext<TargetViewComponent> loadContext) 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) protected JmixComboBox<String>protected voidvisibilityTableComponentColumnUpdater(JmixComboBox<String> comboBox, TargetViewComponent item) Methods inherited from class io.jmix.flowui.view.StandardDetailViewaddAfterSaveListener, addBeforeSaveListener, addInitEntityListener, addValidationEventListener, beforeEnter, 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.StandardViewinitContentMethods inherited from class io.jmix.flowui.view.ViewaddAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, afterNavigation, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, 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.CompositegetChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.ComponentaddListener, findAncestor, fireEvent, from, get, getEventBus, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifieraddAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifieraddDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyleaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
- 
Field Details- 
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:
 
- 
VIEW_COLUMN- See Also:
 
- 
COMPONENT_COLUMN- See Also:
 
- 
CONFIGURATION_NUMBER_FORMAT_PATTERN_PROPERTY- See Also:
 
- 
CONFIGURATION_OPTIONS_LOADER_TYPE_PROPERTY- See Also:
 
- 
FIELDS_VISIBLE_FOR_TYPESprotected 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
- 
lookupField
- 
defaultDateField
- 
defaultDateWithoutTimeField
- 
optionalAttributeForm
- 
dataTypeField
- 
entityClassField
- 
screenField
- 
defaultBooleanField
- 
defaultEnumField
- 
optionsLoaderTypeField
- 
defaultEntityIdField
- 
validationScriptField
- 
optionsLoaderScriptField
- 
joinClauseField
- 
whereClauseField
- 
recalculationScriptField
- 
targetScreensTable
- 
tabSheet
- 
codeField
- 
defaultStringField
- 
defaultDecimalField
- 
minDecimalField
- 
maxDecimalField
- 
dependsOnAttributesField
- 
targetScreensDc
- 
configurationDc
- 
targetScreensDl
- 
categoryAttributeDc
- 
localizationFragment
- 
targetScreens
 
- 
- 
Constructor Details- 
CategoryAttributesDetailViewpublic CategoryAttributesDetailView()
 
- 
- 
Method Details- 
onInit
- 
getEnumValues
- 
onAfterShow
- 
nameFieldUniqueNameValidator
- 
codeFieldUniqueNameValidator
- 
validateUniqueStringOnAttributeprotected void validateUniqueStringOnAttribute(String value, Function<CategoryAttribute, String> mapper, String messageKey) 
- 
onDefaultEntityIdFieldValueChange@Subscribe("defaultEntityIdField") 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) 
- 
refreshOnceprotected void refreshOnce()
- 
onEditEnumerationBtnClick@Subscribe("editEnumerationBtn") protected void onEditEnumerationBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) 
- 
targetScreensDlLoadDelegate@Install(to="targetScreensDl", target=DATA_LOADER) protected List<TargetViewComponent> targetScreensDlLoadDelegate(LoadContext<TargetViewComponent> loadContext) 
- 
onTargetScreensTableCreate@Subscribe("targetScreensTable.create") protected void onTargetScreensTableCreate(ActionPerformedEvent event) 
- 
dependsOnAttributesFieldValidator@Install(to="dependsOnAttributesField", subject="validator") protected void dependsOnAttributesFieldValidator(Collection<CategoryAttribute> categoryAttributes) 
- 
initViewGridprotected void initViewGrid()
- 
visibilityTableComponentColumnComponentGenerator
- 
visibilityTableComponentColumnUpdaterprotected void visibilityTableComponentColumnUpdater(JmixComboBox<String> comboBox, TargetViewComponent item) 
- 
initAttributeFormprotected void initAttributeForm()
- 
attachHelperForSuffixprotected void attachHelperForSuffix(CodeEditor codeEditor, com.vaadin.flow.component.Component componentSuffix) 
- 
initCalculatedValuesAndOptionsFormprotected void initCalculatedValuesAndOptionsForm()
- 
loadTargetViewsprotected void loadTargetViews()
- 
initCategoryAttributeConfigurationFieldprotected void initCategoryAttributeConfigurationField()
- 
initLocalizationTabprotected void initLocalizationTab()
- 
initDependsOnAttributesFieldprotected void initDependsOnAttributesField()
- 
setupNumberFormatprotected void setupNumberFormat()
- 
refreshAttributesUIprotected 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) 
- 
setupFieldsLockprotected void setupFieldsLock()
- 
refreshAttributesValuesprotected void refreshAttributesValues()
- 
refreshDefaultEntityIdFieldValueprotected void refreshDefaultEntityIdFieldValue()
- 
refreshCodeFieldValueprotected void refreshCodeFieldValue()
- 
getBooleanOptions
- 
getDataTypeOptions
- 
getEntityOptions
- 
getLoaderOptions
- 
getAttributesOptions
- 
onValidation
- 
validateEnumeration
- 
validateNumbersprotected ValidationErrors validateNumbers(AttributeType type, Number minNumber, Number maxNumber, Number defaultNumber) 
- 
compareNumbers
- 
onPreCommit
- 
preCommitLocalizationFieldsprotected void preCommitLocalizationFields()
- 
preCommitTargetViewsFieldprotected void preCommitTargetViewsField()
- 
preCommitConfigurationprotected void preCommitConfiguration()
 
-