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,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 Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.StandardDetailView
StandardDetailView.AfterSaveEvent, StandardDetailView.BeforeSaveEvent, StandardDetailView.InitEntityEvent<E>, StandardDetailView.ValidationEventNested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent -
Field Summary
FieldsModifier 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 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.StandardDetailView
DEFAULT_ROUTE_PARAM, LOCKED_BEFORE_REFRESH_ATTR_NAME, MODE_PARAM, MODE_READONLY, NEW_ENTITY_ID, READ_ONLY_BEFORE_REFRESH_ATTR_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattachHelperForSuffix(CodeEditor codeEditor, com.vaadin.flow.component.Component componentSuffix) protected 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 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 JmixComboBox<String>protected voidvisibilityTableComponentColumnUpdater(JmixComboBox<String> comboBox, TargetViewComponent item) Methods inherited from class io.jmix.flowui.view.StandardDetailView
addAfterSaveListener, addBeforeSaveListener, addInitEntityListener, addValidationEventListener, beforeEnter, closeWithDiscard, closeWithSave, entityCanBeLoaded, findEntityId, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getPessimisticLockStatus, getRouteParamName, hasUnsavedChanges, initExistingEntity, initNewEntity, isCrossFieldValidationEnabled, isReadOnly, isSaveActionPerformed, isShowSaveNotification, isShowValidationErrors, save, setCrossFieldValidationEnabled, setEntityToEdit, setReadOnly, setShowSaveNotification, setShowValidationErrors, setupEntityToEdit, setupEntityToEdit, setupEntityToEditMethods inherited from class io.jmix.flowui.view.StandardView
initContentMethods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, afterNavigation, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, setApplicationContext, setId, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacetsMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, 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.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
-
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_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
-
lookupField
-
defaultDateField
-
defaultDateWithoutTimeField
-
optionalAttributeForm
-
dataTypeField
-
entityClassField
-
screenField
-
defaultBooleanField
-
defaultEnumField
-
optionsLoaderTypeField
-
defaultEntityIdField
-
validationScriptField
-
optionsLoaderScriptField
-
joinClauseField
-
whereClauseField
-
recalculationScriptField
-
targetScreensTable
-
tabSheet
-
codeField
-
defaultDecimalField
-
minDecimalField
-
maxDecimalField
-
dependsOnAttributesField
-
targetScreensDc
-
configurationDc
-
targetScreensDl
-
categoryAttributeDc
-
localizationFragment
-
targetScreens
-
-
Constructor Details
-
CategoryAttributesDetailView
public CategoryAttributesDetailView()
-
-
Method Details
-
onInit
-
getEnumValues
-
onAfterShow
-
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) -
refreshOnce
protected 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) -
initViewGrid
protected void initViewGrid() -
visibilityTableComponentColumnComponentGenerator
-
visibilityTableComponentColumnUpdater
protected void visibilityTableComponentColumnUpdater(JmixComboBox<String> comboBox, TargetViewComponent item) -
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
-
preCommitLocalizationFields
protected void preCommitLocalizationFields() -
preCommitTargetViewsField
protected void preCommitTargetViewsField() -
preCommitConfiguration
protected void preCommitConfiguration()
-