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.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.ValidationEvent
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessManager
static final String
protected InstanceContainer<CategoryAttribute>
protected TypedTextField<String>
protected static final String
protected static final String
protected InstanceContainer<CategoryAttributeConfiguration>
protected CoreProperties
protected static final String
protected DataComponents
protected DataManager
protected JmixComboBox<AttributeType>
protected DatatypeRegistry
protected static final String
protected 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 Dialogs
protected DialogWindows
protected DynAttrFacetInfo
protected DynAttrMetadata
protected DynAttrUiHelper
protected JmixButton
protected static final String
protected JmixComboBox<String>
protected EntityStates
protected FetchPlanRepository
protected static final com.google.common.collect.Multimap<AttributeType,
String> protected FormatStringsRegistry
protected boolean
protected CodeEditor
protected AttributeLocalizationComponent
protected static final String
protected JmixCheckbox
protected static final String
protected TypedTextField<BigDecimal>
protected Messages
protected MessageTools
protected Metadata
protected MetadataTools
protected TypedTextField<BigDecimal>
protected MsgBundleTools
protected static final String
protected Notifications
protected com.vaadin.flow.component.formlayout.FormLayout
protected CodeEditor
protected JmixComboBox<OptionsLoaderType>
protected UUID
protected CodeEditor
protected ReferenceToEntitySupport
protected JmixComboBox<String>
protected static final Set<AttributeType>
protected JmixTabSheet
protected List<TargetViewComponent>
protected CollectionContainer<TargetViewComponent>
protected CollectionLoader<TargetViewComponent>
protected UiComponents
protected CodeEditor
protected ViewRegistry
protected Views
protected ViewSupport
protected CodeEditor
Fields 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 void
addKnownTargetView
(String viewId) protected void
attachHelperForSuffix
(CodeEditor codeEditor, com.vaadin.flow.component.Component componentSuffix) void
beforeEnter
(com.vaadin.flow.router.BeforeEnterEvent event) protected void
protected void
protected int
compareNumbers
(AttributeType type, Number first, Number second) protected JmixComboBox<String>
protected void
dependsOnAttributesFieldValidator
(Collection<CategoryAttribute> categoryAttributes) protected List<CategoryAttribute>
protected Map<AttributeType,
String> protected Map<OptionsLoaderType,
String> protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected boolean
protected Category
protected void
protected void
protected void
onAfterShow
(View.BeforeShowEvent event) protected void
onCategoryAttributeDcItemPropertyChange
(InstanceContainer.ItemPropertyChangeEvent<CategoryAttribute> event) protected void
onConfigurationDcItemPropertyChange
(InstanceContainer.ItemPropertyChangeEvent<CategoryAttributeConfiguration> event) void
protected void
onDefaultEntityIdFieldValueChange
(com.vaadin.flow.component.HasValue.ValueChangeEvent<Object> event) protected void
onEditEnumerationBtnClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected void
onInit
(View.InitEvent event) void
protected void
void
onScreenFieldValueChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<String>, String> event) protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
processBeforeEnterInternal
(com.vaadin.flow.router.BeforeEnterEvent event) CAUTION: for internal use only.protected void
protected void
protected void
protected void
protected void
protected void
setupEntityToEdit
(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 inAfterViewNavigationEvent
handler.protected void
protected void
protected <T> void
setValueIfAbsentInItems
(JmixComboBox<T> comboBox, T value) protected void
targetComponentItemUpdater
(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 void
targetViewItemUpdater
(JmixComboBox<String> comboBox, TargetViewComponent item) protected ValidationErrors
validateEnumeration
(String enumeration, String defaultValue) protected ValidationErrors
validateNumbers
(AttributeType type, Number minNumber, Number maxNumber, Number defaultNumber) protected void
validateUniqueStringOnAttribute
(String value, Function<CategoryAttribute, String> mapper, String messageKey) Methods inherited from class io.jmix.flowui.view.StandardDetailView
addAfterSaveListener, addBeforeSaveListener, addInitEntityListener, 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, validateView
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, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onAttachInternal, onDetach, 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
-
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:
beforeEnter
in interfacecom.vaadin.flow.router.internal.BeforeEnterHandler
- Overrides:
beforeEnter
in classStandardDetailView<CategoryAttribute>
-
processBeforeEnterInternal
protected void processBeforeEnterInternal(com.vaadin.flow.router.BeforeEnterEvent event) Description copied from class:View
CAUTION: for internal use only.- Overrides:
processBeforeEnterInternal
in classStandardDetailView<CategoryAttribute>
- Parameters:
event
- before navigation event with event details
-
setupEntityToEdit
Description copied from class:StandardDetailView
Invoked when the view is opened in dialog window or when the view is opened by navigation andStandardDetailView.setEntityToEdit(Object)
method is called inAfterViewNavigationEvent
handler.- Overrides:
setupEntityToEdit
in 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:
getPageTitle
in interfacecom.vaadin.flow.router.HasDynamicTitle
- Overrides:
getPageTitle
in 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()
-