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 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.QueryParametersChangeEvent, View.ReadyEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessManager
protected InstanceContainer<CategoryAttribute>
protected TypedTextField<String>
protected static final 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 Dialogs
protected DialogWindows
protected DynAttrFacetInfo
protected DynAttrMetadata
protected DynAttrUiHelper
protected static final String
protected JmixComboBox<String>
protected FetchPlanRepository
protected static final com.google.common.collect.Multimap<AttributeType,
String> protected FormatStringsRegistry
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 CodeEditor
protected ReferenceToEntitySupport
protected JmixComboBox<String>
protected static final Set<AttributeType>
protected JmixTabSheet
protected List<TargetViewComponent>
protected CollectionContainer<TargetViewComponent>
protected CollectionLoader<TargetViewComponent>
protected DataGrid<TargetViewComponent>
protected UiComponents
protected CodeEditor
protected static final String
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
attachHelperForSuffix
(CodeEditor codeEditor, com.vaadin.flow.component.Component componentSuffix) protected void
protected int
compareNumbers
(AttributeType type, Number first, Number second) 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 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) 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
protected void
protected void
protected void
protected void
protected List<TargetViewComponent>
targetScreensDlLoadDelegate
(LoadContext<TargetViewComponent> loadContext) 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) protected JmixComboBox<String>
protected void
visibilityTableComponentColumnUpdater
(JmixComboBox<String> comboBox, TargetViewComponent item) Methods inherited from class io.jmix.flowui.view.StandardDetailView
addAfterSaveListener, 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, validateView
Methods inherited from class io.jmix.flowui.view.StandardView
initContent
Methods 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, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setMeterRegistry, 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, getEventBus, 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
-
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
-
defaultStringField
-
defaultDecimalField
-
minDecimalField
-
maxDecimalField
-
dependsOnAttributesField
-
targetScreensDc
-
configurationDc
-
targetScreensDl
-
categoryAttributeDc
-
localizationFragment
-
targetScreens
-
-
Constructor Details
-
CategoryAttributesDetailView
public CategoryAttributesDetailView()
-
-
Method Details
-
onInit
-
getEnumValues
-
onAfterShow
-
nameFieldUniqueNameValidator
-
codeFieldUniqueNameValidator
-
validateUniqueStringOnAttribute
protected 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) -
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()
-