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
Modifier and TypeFieldDescriptionprotected AccessManager
protected AppSettings
protected AppSettingsTools
protected com.vaadin.flow.component.orderedlayout.HorizontalLayout
protected MetaClass
protected DataComponents
protected DataContext
protected UnconstrainedDataManager
protected com.vaadin.flow.component.combobox.ComboBox<MetaClass>
protected EntityStates
protected Object
protected FetchPlans
protected com.vaadin.flow.component.orderedlayout.Scroller
protected static final int
protected boolean
protected boolean
protected static final int
protected Messages
protected MessageTools
protected MetadataTools
protected Notifications
protected MetaClass
protected static final String
protected RouteSupport
protected static final String
protected UiComponents
protected UiComponentsGenerator
protected ViewValidation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addPropertiesLayoutItem
(InstanceContainer<?> container, com.vaadin.flow.component.formlayout.FormLayout formLayout, MetaProperty metaProperty) void
beforeEnter
(com.vaadin.flow.router.BeforeEnterEvent event) void
beforeShow
(View.BeforeShowEvent event) protected List<MetaProperty>
collectMetaProperties
(MetaClass metaClass, Object item) protected com.vaadin.flow.component.formlayout.FormLayout
createFormLayout
(InstanceContainer<?> container) protected String
getPropertyCaption
(MetaClass metaClass, MetaProperty metaProperty) protected void
protected boolean
protected void
protected InstanceContainer
protected boolean
isApplicationSettingsEntity
(MetaClass metaClass) protected boolean
isMany
(MetaProperty metaProperty) protected OperationResult
navigate
(com.vaadin.flow.router.BeforeLeaveEvent.ContinueNavigationAction navigationAction, CloseAction closeAction) protected OperationResult
navigateWithDiscard
(com.vaadin.flow.router.BeforeLeaveEvent.ContinueNavigationAction navigationAction) protected OperationResult
navigateWithSave
(com.vaadin.flow.router.BeforeLeaveEvent.ContinueNavigationAction navigationAction) void
protected void
onEntitySelectorValueChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<MetaClass>, MetaClass> e) void
onInit
(View.InitEvent event) void
onSave
(ActionPerformedEvent event) protected void
protected boolean
readPermitted
(MetaClass metaClass) protected OperationResult
void
setSettingsClass
(String metaClassName) protected void
protected void
protected OperationResult
updateEntitySelectorValue
(boolean preventEntitySelectorChange) 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, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets
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
-
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:
beforeEnter
in interfacecom.vaadin.flow.router.internal.BeforeEnterHandler
- Overrides:
beforeEnter
in 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()
-