Class AppSettingsEntityView
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.appsettingsflowui.view.appsettings.AppSettingsEntityView
- 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,Serializable
@Route(value="app-settings",
layout=DefaultMainViewParent.class)
@ViewController("appSettings.view")
@ViewDescriptor("app-settings-entity-view.xml")
@DialogMode(width="50em",
height="37.5em")
public class AppSettingsEntityView
extends StandardView
- See Also:
-
Nested Class Summary
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
FieldsModifier and TypeFieldDescriptionprotected AccessManagerprotected AppSettingsprotected AppSettingsToolsprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutprotected MetaClassprotected DataComponentsprotected DataContextprotected UnconstrainedDataManagerprotected com.vaadin.flow.component.combobox.ComboBox<MetaClass>protected EntityStatesprotected Objectprotected FetchPlansprotected com.vaadin.flow.component.orderedlayout.Scrollerprotected static final intprotected booleanprotected booleanprotected static final intprotected Messagesprotected MessageToolsprotected MetadataToolsprotected Notificationsprotected MetaClassprotected static final Stringprotected RouteSupportprotected static final Stringprotected UiComponentsprotected UiComponentsGeneratorprotected ViewValidation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPropertiesLayoutItem(InstanceContainer<?> container, com.vaadin.flow.component.formlayout.FormLayout formLayout, MetaProperty metaProperty) voidbeforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) voidbeforeShow(View.BeforeShowEvent event) protected List<MetaProperty>collectMetaProperties(MetaClass metaClass, Object item) protected com.vaadin.flow.component.formlayout.FormLayoutcreateFormLayout(InstanceContainer<?> container) protected StringgetPropertyCaption(MetaClass metaClass, MetaProperty metaProperty) protected voidprotected booleanprotected voidprotected InstanceContainerprotected booleanisApplicationSettingsEntity(MetaClass metaClass) protected booleanisMany(MetaProperty metaProperty) protected OperationResultnavigate(com.vaadin.flow.router.BeforeLeaveEvent.ContinueNavigationAction navigationAction, CloseAction closeAction) protected OperationResultnavigateWithDiscard(com.vaadin.flow.router.BeforeLeaveEvent.ContinueNavigationAction navigationAction) protected OperationResultnavigateWithSave(com.vaadin.flow.router.BeforeLeaveEvent.ContinueNavigationAction navigationAction) voidprotected voidonEntitySelectorValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<MetaClass>, MetaClass> e) voidonInit(View.InitEvent event) voidonSave(ActionPerformedEvent event) protected voidprotected booleanreadPermitted(MetaClass metaClass) protected OperationResultvoidsetSettingsClass(String metaClassName) protected voidprotected voidprotected OperationResultupdateEntitySelectorValue(boolean preventEntitySelectorChange) Methods 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
-
MAX_CAPTION_LENGTH
protected static final int MAX_CAPTION_LENGTH- See Also:
-
SELECT_APP_SETTINGS_ENTITY_QUERY
- See Also:
-
QUERY_PARAM_SETTINGS_CLASS
- See Also:
-
FORM_COLUMNS
protected static final int FORM_COLUMNS- See Also:
-
entitySelector
-
fieldsScroller
-
buttonsPanel
-
appSettings
-
entityStates
-
dataManager
-
metadataTools
-
accessManager
-
dataComponents
-
viewValidation
-
messages
-
appSettingsTools
-
messageTools
-
notifications
-
uiComponentsGenerator
-
uiComponents
-
fetchPlans
-
routeSupport
-
dataContext
-
currentMetaClass
-
prevMetaClass
-
isNewEntityModified
protected boolean isNewEntityModified -
isEntityChangePrevented
protected boolean isEntityChangePrevented -
entityToEdit
-
-
Constructor Details
-
AppSettingsEntityView
public AppSettingsEntityView()
-
-
Method Details
-
onInit
-
onEntitySelectorValueChange
@Subscribe("entitySelector") protected void onEntitySelectorValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<MetaClass>, MetaClass> e) -
beforeShow
-
beforeEnter
public void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) - Specified by:
beforeEnterin interfacecom.vaadin.flow.router.internal.BeforeEnterHandler- Overrides:
beforeEnterin classView<ViewLayout>
-
onBeforeClose
-
preventUnsavedChanges
-
setSettingsClass
-
initEntityPropertiesLayout
protected void initEntityPropertiesLayout() -
getEntitySelectorItems
-
readPermitted
-
showEntityPropertiesLayout
protected void showEntityPropertiesLayout() -
createFormLayout
protected com.vaadin.flow.component.formlayout.FormLayout createFormLayout(InstanceContainer<?> container) -
collectMetaProperties
-
isMany
-
addPropertiesLayoutItem
protected void addPropertiesLayoutItem(InstanceContainer<?> container, com.vaadin.flow.component.formlayout.FormLayout formLayout, MetaProperty metaProperty) -
getPropertyCaption
-
initInstanceContainerWithDbEntity
-
isApplicationSettingsEntity
-
onSave
-
hasUnsavedChanges
protected boolean hasUnsavedChanges() -
handleEntitySelectorValueChangeWithUnsavedChanges
protected void handleEntitySelectorValueChangeWithUnsavedChanges() -
saveChanges
-
updateEntitySelectorValue
-
showSaveNotification
protected void showSaveNotification()
-